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.001078/0.001078, allocations: 117.7 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001191/0.001191, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 67.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2249, allocations: 50.55 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.00902/0.234, allocations: 9.105 MB / 417.9 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004692/0.2387, allocations: 3.17 MB / 421 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006758/0.2394, allocations: 47.75 kB / 421.1 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00136/0.2408, allocations: 0.6794 MB / 421.8 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001549/0.2423, allocations: 0.7105 MB / 422.5 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005704/0.2429, allocations: 311.5 kB / 422.8 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001879/0.2448, allocations: 2.148 MB / 424.9 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001445/0.2463, allocations: 1.422 MB / 426.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.2473, allocations: 0.9343 MB / 427.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.2485, allocations: 1.14 MB / 428.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002686/0.2488, allocations: 232 kB / 428.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005071/0.2493, allocations: 331.8 kB / 429 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000564/0.2499, allocations: 0.6778 MB / 429.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008899/0.2508, allocations: 1.093 MB / 430.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002489/0.2533, allocations: 3.135 MB / 433.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2533, allocations: 0 / 433.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2533, allocations: 0 / 433.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.277e-05/0.2534, allocations: 11.94 kB / 433.9 MB, free: 8.199 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.004131/0.2575, allocations: 2.308 MB / 436.2 MB, free: 5.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.2576, allocations: 12.03 kB / 436.2 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002634/0.2579, allocations: 232.4 kB / 436.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006299/0.2585, allocations: 238.4 kB / 436.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002084/0.2606, allocations: 1.231 MB / 437.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.511e-05/0.2607, allocations: 119.2 kB / 438 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002156/0.2609, allocations: 156 kB / 438.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002992/0.2639, allocations: 2.029 MB / 440.2 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.497e-05/0.264, allocations: 3.906 kB / 440.2 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/0.2641, allocations: 68 kB / 440.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.637e-05/0.2642, allocations: 82.92 kB / 440.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002596/0.2668, allocations: 1.678 MB / 442 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008666/0.2755, allocations: 7.026 MB / 449.1 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007989/0.2763, allocations: 480.9 kB / 449.5 MB, free: 8.027 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004179/0.2767, allocations: 281.9 kB / 449.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001991/0.2769, allocations: 117.5 kB / 449.9 MB, free: 7.617 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.277, allocations: 35 kB / 450 MB, free: 7.574 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.234e-06/0.277, allocations: 4 kB / 450 MB, free: 7.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.006281/0.2833, allocations: 3.033 MB / 453 MB, free: 4.465 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.2833, allocations: 55.97 kB / 453 MB, free: 4.398 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001914/0.2852, allocations: 1.632 MB / 454.7 MB, free: 2.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.912e-05/0.2853, allocations: 37.7 kB / 454.7 MB, free: 2.715 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006365/0.2859, allocations: 1.026 MB / 455.7 MB, free: 1.676 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.2861, allocations: 240.8 kB / 456 MB, free: 1.438 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000383/0.2865, allocations: 327 kB / 456.3 MB, free: 1.113 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.964e-05/0.2866, allocations: 301.1 kB / 456.6 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008255/0.2874, allocations: 0.5192 MB / 457.1 MB, free: 304 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.2888, allocations: 1.462 MB / 458.6 MB, free: 14.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002293/0.2911, allocations: 2.134 MB / 460.7 MB, free: 11.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.697e-05/0.2911, allocations: 12 kB / 460.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003262/0.2944, allocations: 2.164 MB / 462.9 MB, free: 9.586 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.2944, allocations: 20 kB / 462.9 MB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.874e-05/0.2944, allocations: 32 kB / 462.9 MB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005359/0.295, allocations: 226.4 kB / 463.1 MB, free: 9.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.2961, allocations: 407.5 kB / 463.5 MB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00157/0.2977, allocations: 1.836 MB / 465.4 MB, free: 6.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.2989, allocations: 151.3 kB / 465.5 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.299, allocations: 95.94 kB / 465.6 MB, free: 6.688 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.000728/0.2997, allocations: 0.5983 MB / 466.2 MB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/0.2999, allocations: 150.1 kB / 466.4 MB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001882/0.3018, allocations: 1.094 MB / 467.5 MB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.3018, allocations: 4 kB / 467.5 MB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.3019, allocations: 4 kB / 467.5 MB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.3019, allocations: 3.984 kB / 467.5 MB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00437/0.3062, allocations: 2.756 MB / 470.2 MB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.3063, allocations: 4 kB / 470.2 MB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005034/0.3068, allocations: 127.9 kB / 470.4 MB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004229/0.3072, allocations: 158.4 kB / 470.5 MB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.3073, allocations: 15.98 kB / 470.5 MB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001442/0.3087, allocations: 1.781 MB / 472.3 MB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.3087, allocations: 7.969 kB / 472.3 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002435/0.3112, allocations: 1.631 MB / 474 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005595/0.3117, allocations: 299.2 kB / 474.2 MB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001502/0.3119, allocations: 16 kB / 474.3 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006227/0.3125, allocations: 52.14 kB / 474.3 MB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.3127, allocations: 52.42 kB / 474.4 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.315e-05/0.3127, allocations: 20 kB / 474.4 MB, free: 13.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001365/0.3141, allocations: 1.079 MB / 475.5 MB, free: 12.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3141, allocations: 0 / 475.5 MB, free: 12.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001227/0.3153, allocations: 364 kB / 475.8 MB, free: 12.16 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.002767/0.3181, allocations: 2.246 MB / 478.1 MB, free: 9.863 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002417/0.3205, allocations: 1.618 MB / 479.7 MB, free: 8.195 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3206, allocations: 0 / 479.7 MB, free: 8.195 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.3216, allocations: 0.7637 MB / 480.4 MB, free: 7.375 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001628/0.3232, allocations: 409.6 kB / 480.8 MB, free: 6.988 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.018/0.3413, allocations: 14.94 MB / 495.8 MB, free: 6.938 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009622/0.3422, allocations: 1.469 MB / 497.2 MB, free: 5.434 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009002/0.3432, allocations: 353.9 kB / 497.6 MB, free: 5.082 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007216/0.3439, allocations: 0.6399 MB / 498.2 MB, free: 4.445 MB / 414.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3439, allocations: 4 kB / 498.2 MB, free: 4.441 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06078/0.4047, allocations: 35.97 MB / 0.5217 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.23, allocations: 8.062 kB / 0.5217 GB, free: 0.8398 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