Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 193.5 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 43.94 kB / 371.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2688, allocations: 52.19 MB / 423.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01064/0.2794, allocations: 7.963 MB / 431.3 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006444/0.2858, allocations: 2.956 MB / 434.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001635/0.2875, allocations: 55.62 kB / 434.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002287/0.2898, allocations: 0.6407 MB / 435 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003127/0.2929, allocations: 0.7574 MB / 435.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001315/0.2942, allocations: 315.5 kB / 436 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004077/0.2983, allocations: 2.115 MB / 438.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0016/0.2999, allocations: 0.8285 MB / 439 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001762/0.3016, allocations: 0.9421 MB / 439.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001962/0.3036, allocations: 1.152 MB / 441.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004201/0.304, allocations: 232 kB / 441.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006927/0.3047, allocations: 315.8 kB / 441.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008077/0.3055, allocations: 0.6894 MB / 442.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.3067, allocations: 0.8712 MB / 443.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003807/0.3105, allocations: 3.133 MB / 446.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3105, allocations: 0 / 446.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3105, allocations: 0 / 446.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.461e-05/0.3106, allocations: 0 / 446.3 MB, free: 7.305 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004818/0.3154, allocations: 2.25 MB / 448.6 MB, free: 5.012 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.3154, allocations: 12.03 kB / 448.6 MB, free: 5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.683e-05/0.3155, allocations: 39.27 kB / 448.6 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003018/0.3158, allocations: 232.2 kB / 448.8 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006739/0.3165, allocations: 243.5 kB / 449.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002173/0.3186, allocations: 1.16 MB / 450.2 MB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.3187, allocations: 119 kB / 450.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002497/0.319, allocations: 148 kB / 450.5 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003517/0.3225, allocations: 2.08 MB / 452.6 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.194e-05/0.3226, allocations: 15.94 kB / 452.6 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001471/0.3227, allocations: 63.98 kB / 452.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.456e-05/0.3228, allocations: 78.91 kB / 452.7 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002784/0.3256, allocations: 1.651 MB / 454.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01046/0.336, allocations: 6.275 MB / 460.7 MB, free: 8.461 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000812/0.3369, allocations: 430.1 kB / 461.1 MB, free: 8.027 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003876/0.3372, allocations: 246 kB / 461.3 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002023/0.3374, allocations: 40.41 kB / 461.4 MB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.3375, allocations: 39 kB / 461.4 MB, free: 7.699 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 3.095e-06/0.3375, allocations: 0 / 461.4 MB, free: 7.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.007676/0.3452, allocations: 3.167 MB / 464.6 MB, free: 4.492 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002588/0.3477, allocations: 2.207 MB / 466.8 MB, free: 2.145 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002525/0.3503, allocations: 1.623 MB / 468.4 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001066/0.3504, allocations: 37.64 kB / 468.4 MB, free: 480 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008366/0.3512, allocations: 1.053 MB / 469.5 MB, free: 15.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002547/0.3515, allocations: 250 kB / 469.7 MB, free: 15.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004887/0.352, allocations: 323.3 kB / 470 MB, free: 14.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.3521, allocations: 305.1 kB / 470.3 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008448/0.3529, allocations: 0.5231 MB / 470.9 MB, free: 14.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00167/0.3546, allocations: 1.461 MB / 472.3 MB, free: 12.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002748/0.3573, allocations: 2.141 MB / 474.5 MB, free: 9.473 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-05/0.3574, allocations: 8 kB / 474.5 MB, free: 9.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003907/0.3613, allocations: 2.162 MB / 476.6 MB, free: 7.285 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.975e-05/0.3613, allocations: 20 kB / 476.7 MB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.89e-05/0.3614, allocations: 32 kB / 476.7 MB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006564/0.362, allocations: 235.1 kB / 476.9 MB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.3632, allocations: 391.3 kB / 477.3 MB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001935/0.3651, allocations: 1.741 MB / 479 MB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.3666, allocations: 143.7 kB / 479.2 MB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000146/0.3668, allocations: 95.98 kB / 479.3 MB, free: 4.516 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009644/0.3677, allocations: 0.5867 MB / 479.9 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003078/0.3681, allocations: 159 kB / 480 MB, free: 3.762 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002105/0.3702, allocations: 1.108 MB / 481.1 MB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.3702, allocations: 7.984 kB / 481.1 MB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3702, allocations: 4 kB / 481.1 MB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.3702, allocations: 3.938 kB / 481.1 MB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006027/0.3762, allocations: 3.134 MB / 484.3 MB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/0.3762, allocations: 4 kB / 484.3 MB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004366/0.3767, allocations: 116.5 kB / 484.4 MB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007609/0.3774, allocations: 230.4 kB / 484.6 MB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.566e-05/0.3775, allocations: 16 kB / 484.6 MB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004424/0.3819, allocations: 3.827 MB / 488.5 MB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002241/0.3841, allocations: 2.074 MB / 490.5 MB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002894/0.387, allocations: 1.75 MB / 492.3 MB, free: 6.863 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008014/0.3878, allocations: 238.8 kB / 492.5 MB, free: 6.629 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/0.388, allocations: 16 kB / 492.5 MB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006607/0.3887, allocations: 51.94 kB / 492.6 MB, free: 6.562 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.3888, allocations: 59.78 kB / 492.6 MB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.071e-05/0.3889, allocations: 27.98 kB / 492.7 MB, free: 6.477 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001661/0.3905, allocations: 1.07 MB / 493.7 MB, free: 5.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3905, allocations: 0 / 493.7 MB, free: 5.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001615/0.3922, allocations: 383.9 kB / 494.1 MB, free: 5.035 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003279/0.3954, allocations: 2.369 MB / 496.5 MB, free: 2.562 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002593/0.398, allocations: 1.413 MB / 497.9 MB, free: 1.137 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.398, allocations: 7.938 kB / 497.9 MB, free: 1.129 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001384/0.3994, allocations: 0.7491 MB / 498.7 MB, free: 360 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002075/0.4015, allocations: 412.4 kB / 499.1 MB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02235/0.4238, allocations: 15.3 MB / 0.5023 GB, free: 15.42 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/0.4249, allocations: 0.8853 MB / 0.5032 GB, free: 14.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001002/0.4259, allocations: 346 kB / 0.5035 GB, free: 14.16 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009259/0.4268, allocations: 0.6243 MB / 0.5041 GB, free: 13.53 MB / 430.1 MB Notification: Performance of SimCode: time 1.633e-06/0.4268, allocations: 0 / 0.5041 GB, free: 13.53 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/0.5287, allocations: 38.88 MB / 0.5421 GB, free: 7.184 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.99/16.52, allocations: 11.92 kB / 0.5421 GB, free: 7.172 MB / 462.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.220502469106577]