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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",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="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 111.6 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001197, allocations: 198.8 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 43.94 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2175, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.009262/0.2268, allocations: 8.993 MB / 409.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004962/0.2318, allocations: 3.162 MB / 412.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008752/0.2327, allocations: 39.88 kB / 412.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001579/0.2343, allocations: 0.7107 MB / 413.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001791/0.2361, allocations: 0.7457 MB / 413.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000768/0.2369, allocations: 319.5 kB / 414.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002222/0.2391, allocations: 2.113 MB / 416.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00168/0.2408, allocations: 1.425 MB / 417.7 MB, free: 7.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001145/0.242, allocations: 0.9187 MB / 418.7 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00157/0.2436, allocations: 1.125 MB / 419.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003246/0.2439, allocations: 232 kB / 420 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005769/0.2445, allocations: 315.9 kB / 420.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005887/0.2451, allocations: 0.6739 MB / 421 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009622/0.2461, allocations: 1.085 MB / 422.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002439/0.2485, allocations: 3.1 MB / 425.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2485, allocations: 4 kB / 425.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.419e-06/0.2486, allocations: 4 kB / 425.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.434e-05/0.2486, allocations: 3.938 kB / 425.2 MB, free: 15.73 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.003644/0.2522, allocations: 2.261 MB / 427.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.2523, allocations: 12.03 kB / 427.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002536/0.2525, allocations: 228.3 kB / 427.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005568/0.2531, allocations: 234.5 kB / 427.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001771/0.2549, allocations: 1.212 MB / 429.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.773e-05/0.255, allocations: 123.1 kB / 429.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002145/0.2552, allocations: 159.9 kB / 429.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002837/0.2581, allocations: 2.004 MB / 431.4 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.55e-05/0.2581, allocations: 4 kB / 431.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001362/0.2583, allocations: 60 kB / 431.5 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-05/0.2583, allocations: 82.86 kB / 431.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002444/0.2608, allocations: 1.655 MB / 433.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008436/0.2692, allocations: 6.889 MB / 440.1 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007162/0.27, allocations: 439.2 kB / 440.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003597/0.2704, allocations: 266 kB / 440.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000205/0.2706, allocations: 113.5 kB / 440.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.2706, allocations: 39 kB / 440.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.464e-06/0.2706, allocations: 0 / 440.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.006519/0.2771, allocations: 3.296 MB / 444.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002202/0.2794, allocations: 2.322 MB / 446.5 MB, free: 9.562 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002039/0.2814, allocations: 1.611 MB / 448.2 MB, free: 7.941 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.661e-05/0.2815, allocations: 37.7 kB / 448.2 MB, free: 7.898 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006388/0.2821, allocations: 1.022 MB / 449.2 MB, free: 6.863 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.2823, allocations: 244.8 kB / 449.5 MB, free: 6.621 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003878/0.2827, allocations: 319.1 kB / 449.8 MB, free: 6.305 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.2828, allocations: 305.1 kB / 450.1 MB, free: 6.004 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007491/0.2836, allocations: 0.5231 MB / 450.6 MB, free: 5.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001246/0.2849, allocations: 1.461 MB / 452 MB, free: 3.555 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002113/0.287, allocations: 2.138 MB / 454.2 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/0.287, allocations: 12 kB / 454.2 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003135/0.2901, allocations: 2.154 MB / 456.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/0.2902, allocations: 30.62 kB / 456.4 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.081e-05/0.2902, allocations: 32.09 kB / 456.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005027/0.2907, allocations: 230.3 kB / 456.6 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.2919, allocations: 395.3 kB / 457 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001551/0.2934, allocations: 1.851 MB / 458.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.2946, allocations: 139.4 kB / 459 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.2948, allocations: 95.98 kB / 459.1 MB, free: 11.86 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.0007317/0.2955, allocations: 0.5843 MB / 459.7 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002062/0.2957, allocations: 154.1 kB / 459.8 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/0.2975, allocations: 1.11 MB / 460.9 MB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.2975, allocations: 8 kB / 461 MB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2976, allocations: 0 / 461 MB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.2976, allocations: 7.922 kB / 461 MB, free: 9.961 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004817/0.3024, allocations: 3.398 MB / 464.4 MB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.3024, allocations: 4 kB / 464.4 MB, free: 6.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004176/0.3028, allocations: 111.8 kB / 464.5 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006079/0.3035, allocations: 226.8 kB / 464.7 MB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.524e-05/0.3035, allocations: 23.98 kB / 464.7 MB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003633/0.3072, allocations: 4.046 MB / 468.8 MB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001892/0.3091, allocations: 2.165 MB / 470.9 MB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/0.3115, allocations: 1.743 MB / 472.7 MB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004987/0.312, allocations: 315 kB / 473 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.3121, allocations: 16 kB / 473 MB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006466/0.3128, allocations: 51.94 kB / 473 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.3129, allocations: 59.88 kB / 473.1 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-05/0.313, allocations: 27.98 kB / 473.1 MB, free: 13.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00142/0.3144, allocations: 1.066 MB / 474.2 MB, free: 12.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3144, allocations: 0 / 474.2 MB, free: 12.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00148/0.3159, allocations: 384 kB / 474.6 MB, free: 11.64 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.002728/0.3186, allocations: 2.374 MB / 476.9 MB, free: 9.168 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002274/0.3209, allocations: 1.609 MB / 478.6 MB, free: 7.508 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3209, allocations: 3.938 kB / 478.6 MB, free: 7.504 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001204/0.3222, allocations: 0.8517 MB / 479.4 MB, free: 6.605 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/0.3239, allocations: 416.4 kB / 479.8 MB, free: 6.207 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0183/0.3422, allocations: 15.24 MB / 495.1 MB, free: 5.727 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001005/0.3432, allocations: 1.465 MB / 496.5 MB, free: 4.234 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008889/0.3441, allocations: 357.9 kB / 496.9 MB, free: 3.879 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007374/0.3449, allocations: 0.6203 MB / 497.5 MB, free: 3.258 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3449, allocations: 4 kB / 497.5 MB, free: 3.254 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06402/0.4089, allocations: 36.28 MB / 0.5213 GB, free: 15.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/14.19, allocations: 14.94 kB / 0.5213 GB, free: 15.38 MB / 462.1 MB (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 --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) 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) Reference file matches