Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.005105/0.005105, allocations: 114 kB / 21.97 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 212.3 kB / 25.28 MB, free: 3.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.266/1.266, allocations: 207.6 MB / 236 MB, free: 9.98 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 47.92 kB / 348 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2314, allocations: 49.16 MB / 397.2 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01096/0.2424, allocations: 12.93 MB / 410.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008511/0.2509, allocations: 4.327 MB / 414.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00219/0.2531, allocations: 80.62 kB / 414.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003234/0.2563, allocations: 1.025 MB / 415.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0046/0.2609, allocations: 1.296 MB / 416.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002404/0.2633, allocations: 0.884 MB / 417.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005668/0.269, allocations: 4.05 MB / 421.7 MB, free: 7.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003245/0.2722, allocations: 1.748 MB / 423.5 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003048/0.2753, allocations: 1.94 MB / 425.4 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003868/0.2792, allocations: 2.138 MB / 427.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001255/0.2804, allocations: 0.5133 MB / 428.1 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002327/0.2827, allocations: 0.722 MB / 428.8 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001538/0.2843, allocations: 1.141 MB / 429.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003441/0.2877, allocations: 2.132 MB / 432.1 MB, free: 248 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007477/0.2952, allocations: 6.755 MB / 438.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2952, allocations: 0 / 438.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2952, allocations: 0 / 438.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001077/0.2953, allocations: 0 / 438.8 MB, free: 9.469 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.0104/0.3057, allocations: 4.423 MB / 443.3 MB, free: 4.984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3058, allocations: 19.98 kB / 443.3 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.307e-05/0.3058, allocations: 82.45 kB / 443.4 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005888/0.3064, allocations: 447.1 kB / 443.8 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003975/0.3104, allocations: 0.8223 MB / 444.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004611/0.315, allocations: 2.283 MB / 446.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001974/0.3152, allocations: 238.4 kB / 447.1 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006093/0.3158, allocations: 319.9 kB / 447.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0073/0.3231, allocations: 4.25 MB / 451.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.231e-05/0.3232, allocations: 4 kB / 451.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002924/0.3235, allocations: 131.9 kB / 451.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001484/0.3236, allocations: 142.2 kB / 452 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006619/0.3303, allocations: 3.651 MB / 455.6 MB, free: 8.496 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01995/0.3502, allocations: 13.11 MB / 468.7 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004784/0.355, allocations: 2.59 MB / 471.3 MB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002143/0.3571, allocations: 1.293 MB / 472.6 MB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005833/0.363, allocations: 3.387 MB / 476 MB, free: 3.867 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.622e-05/0.363, allocations: 51.56 kB / 476 MB, free: 3.805 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 2.685e-06/0.363, allocations: 3.938 kB / 476.1 MB, free: 3.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01296/0.376, allocations: 6.048 MB / 482.1 MB, free: 13.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.376, allocations: 68.72 kB / 482.2 MB, free: 13.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002875/0.3789, allocations: 1.859 MB / 484 MB, free: 11.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001689/0.3791, allocations: 45.7 kB / 484.1 MB, free: 11.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/0.3802, allocations: 1.459 MB / 485.5 MB, free: 10.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004641/0.3806, allocations: 0.5112 MB / 486 MB, free: 9.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004881/0.3811, allocations: 303.5 kB / 486.3 MB, free: 9.426 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.3812, allocations: 305.1 kB / 486.6 MB, free: 9.125 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.3825, allocations: 0.7613 MB / 487.4 MB, free: 8.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/0.3841, allocations: 1.224 MB / 488.6 MB, free: 6.938 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002916/0.387, allocations: 2.104 MB / 490.7 MB, free: 4.645 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-06/0.387, allocations: 8 kB / 490.7 MB, free: 4.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004644/0.3916, allocations: 2.657 MB / 493.4 MB, free: 1.965 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/0.3917, allocations: 19.97 kB / 493.4 MB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.822e-05/0.3917, allocations: 15.98 kB / 493.4 MB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001375/0.3931, allocations: 0.4975 MB / 493.9 MB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/0.3945, allocations: 395.4 kB / 494.3 MB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008981/0.4035, allocations: 6.71 MB / 0.4893 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.4049, allocations: 75.92 kB / 0.4893 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001752/0.4051, allocations: 76.08 kB / 0.4894 GB, free: 9.953 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001808/0.4069, allocations: 1.044 MB / 0.4904 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004375/0.4073, allocations: 206.7 kB / 0.4906 GB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004332/0.4117, allocations: 2.333 MB / 0.4929 GB, free: 6.328 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.4117, allocations: 12 kB / 0.4929 GB, free: 6.316 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.609e-05/0.4117, allocations: 8 kB / 0.4929 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.4117, allocations: 11.97 kB / 0.4929 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008816/0.4205, allocations: 5.35 MB / 0.4982 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.4205, allocations: 0 / 0.4982 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009413/0.4215, allocations: 215.7 kB / 0.4984 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001278/0.4228, allocations: 0.5038 MB / 0.4989 GB, free: 128 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.4229, allocations: 36 kB / 0.4989 GB, free: 92 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/0.4338, allocations: 10.89 MB / 0.5095 GB, free: 4.625 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.4338, allocations: 4.312 kB / 0.5095 GB, free: 4.621 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005548/0.4394, allocations: 3.417 MB / 0.5129 GB, free: 1.152 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009759/0.4403, allocations: 394.6 kB / 0.5133 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003702/0.4407, allocations: 28 kB / 0.5133 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009982/0.4417, allocations: 75.81 kB / 0.5133 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002511/0.442, allocations: 117.1 kB / 0.5135 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.57e-05/0.4421, allocations: 39.98 kB / 0.5135 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002093/0.4441, allocations: 1.286 MB / 0.5148 GB, free: 15.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4441, allocations: 0 / 0.5148 GB, free: 15.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002033/0.4462, allocations: 0.5898 MB / 0.5153 GB, free: 14.64 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005813/0.452, allocations: 4.01 MB / 0.5192 GB, free: 10.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00414/0.4561, allocations: 2.312 MB / 0.5215 GB, free: 8.234 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4561, allocations: 0 / 0.5215 GB, free: 8.234 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002494/0.4586, allocations: 1.654 MB / 0.5231 GB, free: 6.516 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002426/0.4611, allocations: 0.5181 MB / 0.5236 GB, free: 5.996 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0362/0.4973, allocations: 21.36 MB / 0.5445 GB, free: 20 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002904/0.5002, allocations: 2.363 MB / 0.5468 GB, free: 13.62 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001344/0.5015, allocations: 420.7 kB / 0.5472 GB, free: 13.21 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001617/0.5031, allocations: 1.151 MB / 0.5483 GB, free: 12.06 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5031, allocations: 3.938 kB / 0.5483 GB, free: 12.06 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2608/0.764, allocations: 57.04 MB / 0.604 GB, free: 124.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.53/15.29, allocations: 4.062 kB / 0.604 GB, free: 124.2 MB / 478.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Initialize/AIMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 23.212587528978474]