Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001067/0.001067, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 55.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2301, allocations: 50.55 MB / 408.8 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01016/0.2403, allocations: 9.113 MB / 417.9 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006438/0.2467, allocations: 3.17 MB / 421 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001637/0.2484, allocations: 47.75 kB / 421.1 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002672/0.2511, allocations: 0.6755 MB / 421.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002808/0.254, allocations: 0.7144 MB / 422.5 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001454/0.2555, allocations: 315.5 kB / 422.8 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003682/0.2592, allocations: 2.136 MB / 424.9 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002746/0.2619, allocations: 1.433 MB / 426.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001813/0.2638, allocations: 0.9343 MB / 427.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002146/0.266, allocations: 1.144 MB / 428.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005945/0.2666, allocations: 232 kB / 428.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001345/0.268, allocations: 327.8 kB / 429 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008333/0.2688, allocations: 0.674 MB / 429.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001738/0.2706, allocations: 1.1 MB / 430.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003643/0.2742, allocations: 3.131 MB / 433.9 MB, free: 8.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2742, allocations: 0 / 433.9 MB, free: 8.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2743, allocations: 0 / 433.9 MB, free: 8.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.45e-05/0.2743, allocations: 4 kB / 433.9 MB, free: 8.277 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: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.004819/0.2792, allocations: 2.312 MB / 436.2 MB, free: 5.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.2792, allocations: 8.031 kB / 436.2 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003208/0.2795, allocations: 236.4 kB / 436.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007029/0.2803, allocations: 234.4 kB / 436.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001988/0.2823, allocations: 1.235 MB / 437.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.377e-05/0.2824, allocations: 119.2 kB / 438 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002144/0.2826, allocations: 148 kB / 438.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003053/0.2856, allocations: 2.033 MB / 440.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.537e-05/0.2857, allocations: 11.84 kB / 440.2 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001394/0.2859, allocations: 63.98 kB / 440.3 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.61e-05/0.2859, allocations: 78.94 kB / 440.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002662/0.2886, allocations: 1.682 MB / 442 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009489/0.2981, allocations: 7.03 MB / 449.1 MB, free: 8.574 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.2992, allocations: 476.6 kB / 449.5 MB, free: 8.102 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004553/0.2996, allocations: 278 kB / 449.8 MB, free: 7.828 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002399/0.2999, allocations: 109.5 kB / 449.9 MB, free: 7.703 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.2999, allocations: 42.98 kB / 450 MB, free: 7.652 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.855e-06/0.2999, allocations: 0 / 450 MB, free: 7.652 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.007386/0.3073, allocations: 3.037 MB / 453 MB, free: 4.543 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.3074, allocations: 59.97 kB / 453 MB, free: 4.473 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002416/0.3098, allocations: 1.628 MB / 454.7 MB, free: 2.836 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.329e-05/0.3099, allocations: 33.7 kB / 454.7 MB, free: 2.797 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006894/0.3106, allocations: 1.034 MB / 455.7 MB, free: 1.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001929/0.3108, allocations: 236.8 kB / 456 MB, free: 1.516 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004136/0.3113, allocations: 327.1 kB / 456.3 MB, free: 1.191 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.044e-05/0.3113, allocations: 301.1 kB / 456.6 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.3124, allocations: 0.5308 MB / 457.1 MB, free: 376 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001397/0.3138, allocations: 1.454 MB / 458.6 MB, free: 14.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002706/0.3166, allocations: 2.137 MB / 460.7 MB, free: 11.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-05/0.3166, allocations: 8 kB / 460.7 MB, free: 11.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003915/0.3205, allocations: 2.16 MB / 462.9 MB, free: 9.664 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.673e-05/0.3206, allocations: 20 kB / 462.9 MB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.645e-05/0.3206, allocations: 32 kB / 462.9 MB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006273/0.3213, allocations: 230.3 kB / 463.2 MB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.3225, allocations: 403.5 kB / 463.5 MB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001854/0.3244, allocations: 1.847 MB / 465.4 MB, free: 7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001576/0.326, allocations: 147.3 kB / 465.5 MB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/0.3261, allocations: 92 kB / 465.6 MB, free: 6.766 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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.000903/0.3271, allocations: 0.5983 MB / 466.2 MB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003122/0.3274, allocations: 154.1 kB / 466.4 MB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002117/0.3295, allocations: 1.086 MB / 467.5 MB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.3295, allocations: 8 kB / 467.5 MB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.3295, allocations: 0 / 467.5 MB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.3296, allocations: 3.984 kB / 467.5 MB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004943/0.3345, allocations: 2.76 MB / 470.2 MB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.3345, allocations: 0 / 470.2 MB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005388/0.3351, allocations: 120 kB / 470.4 MB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004567/0.3356, allocations: 174.4 kB / 470.5 MB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.617e-05/0.3356, allocations: 16 kB / 470.5 MB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/0.3373, allocations: 1.781 MB / 472.3 MB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3373, allocations: 3.938 kB / 472.3 MB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002748/0.3401, allocations: 1.632 MB / 474 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006825/0.3408, allocations: 299.1 kB / 474.2 MB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001906/0.341, allocations: 12 kB / 474.3 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006914/0.3417, allocations: 52 kB / 474.3 MB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.3418, allocations: 56.38 kB / 474.4 MB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.356e-05/0.3419, allocations: 19.98 kB / 474.4 MB, free: 13.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00169/0.3436, allocations: 1.079 MB / 475.5 MB, free: 12.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3436, allocations: 0 / 475.5 MB, free: 12.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001661/0.3453, allocations: 368 kB / 475.8 MB, free: 12.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (speed.phi) * 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 (60): * Single equations (assignments): 57 * 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 Backend phase and start with SimCode phase: time 0.0033/0.3486, allocations: 2.246 MB / 478.1 MB, free: 9.938 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003128/0.3517, allocations: 1.611 MB / 479.7 MB, free: 8.277 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.3518, allocations: 4 kB / 479.7 MB, free: 8.273 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.353, allocations: 0.7597 MB / 480.4 MB, free: 7.457 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00211/0.3551, allocations: 411.2 kB / 480.8 MB, free: 7.066 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02179/0.3769, allocations: 14.93 MB / 495.8 MB, free: 7.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009965/0.3779, allocations: 1.469 MB / 497.2 MB, free: 5.516 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009599/0.3789, allocations: 354 kB / 497.6 MB, free: 5.164 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007755/0.3797, allocations: 0.636 MB / 498.2 MB, free: 4.531 MB / 414.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3797, allocations: 3.938 kB / 498.2 MB, free: 4.527 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06615/0.4459, allocations: 35.98 MB / 0.5217 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.08, allocations: 9.531 kB / 0.5217 GB, free: 0.9219 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.32 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches