Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.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.006087/0.006087, allocations: 114.1 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.001783/0.001783, allocations: 212.6 kB / 25.28 MB, free: 3.242 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.348/1.348, allocations: 207.6 MB / 236.1 MB, free: 9.988 MB / 190.1 MB " [Timeout remaining time 178] 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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",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.001775/0.001775, allocations: 47.92 kB / 348 MB, free: 10 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2528, allocations: 49.17 MB / 397.2 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.00934/0.2622, allocations: 9.702 MB / 406.9 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006665/0.2688, allocations: 3.51 MB / 410.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001566/0.2704, allocations: 53.78 kB / 410.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00182/0.2722, allocations: 0.7105 MB / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002574/0.2748, allocations: 0.8831 MB / 412 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001375/0.2762, allocations: 464.5 kB / 412.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004408/0.2806, allocations: 2.674 MB / 415.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001703/0.2823, allocations: 1.065 MB / 416.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002333/0.2846, allocations: 1.213 MB / 417.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00305/0.2877, allocations: 1.547 MB / 419 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008228/0.2885, allocations: 305.4 kB / 419.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001776/0.2903, allocations: 0.6363 MB / 419.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001442/0.2917, allocations: 1.042 MB / 421 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002426/0.2941, allocations: 1.481 MB / 422.4 MB, free: 8.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00634/0.3005, allocations: 4.298 MB / 426.7 MB, free: 5.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3005, allocations: 1.156 kB / 426.7 MB, free: 5.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3005, allocations: 0 / 426.7 MB, free: 5.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001653/0.3007, allocations: 0 / 426.7 MB, free: 5.352 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.008359/0.309, allocations: 3.17 MB / 429.9 MB, free: 2.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.3091, allocations: 15.98 kB / 429.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001069/0.3092, allocations: 78.02 kB / 430 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005808/0.3097, allocations: 359.9 kB / 430.4 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008855/0.3106, allocations: 350.8 kB / 430.7 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003305/0.3139, allocations: 1.572 MB / 432.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001434/0.3141, allocations: 160.2 kB / 432.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003933/0.3145, allocations: 219.8 kB / 432.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005442/0.3199, allocations: 2.776 MB / 435.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.461e-05/0.32, allocations: 7.953 kB / 435.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002008/0.3202, allocations: 91.98 kB / 435.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001387/0.3203, allocations: 100.1 kB / 435.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004763/0.3251, allocations: 2.339 MB / 438 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01554/0.3406, allocations: 8.183 MB / 446.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002937/0.3436, allocations: 1.389 MB / 447.5 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002146/0.3457, allocations: 1.102 MB / 448.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002271/0.3459, allocations: 58.95 kB / 448.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.418e-05/0.346, allocations: 47.88 kB / 448.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=142): time 3.917e-06/0.346, allocations: 0 / 448.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=218): time 0.0371/0.3831, allocations: 13.86 MB / 462.6 MB, free: 1.238 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.754e-05/0.3832, allocations: 85.33 kB / 462.7 MB, free: 1.141 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003052/0.3862, allocations: 2.156 MB / 464.8 MB, free: 14.94 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002854/0.3865, allocations: 65.64 kB / 464.9 MB, free: 14.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008873/0.3874, allocations: 1.119 MB / 466 MB, free: 13.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007314/0.3881, allocations: 0.7629 MB / 466.8 MB, free: 12.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006347/0.3887, allocations: 359.5 kB / 467.1 MB, free: 12.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3889, allocations: 301.1 kB / 467.4 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002161/0.391, allocations: 1.187 MB / 468.6 MB, free: 11.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002306/0.3933, allocations: 1.475 MB / 470.1 MB, free: 9.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004676/0.398, allocations: 2.812 MB / 472.9 MB, free: 6.656 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.635e-06/0.398, allocations: 0 / 472.9 MB, free: 6.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008016/0.406, allocations: 4.021 MB / 476.9 MB, free: 2.613 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.4061, allocations: 8 kB / 476.9 MB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.4061, allocations: 8 kB / 476.9 MB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002756/0.4088, allocations: 1.091 MB / 478 MB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001907/0.4107, allocations: 415.4 kB / 478.4 MB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01773/0.4285, allocations: 14.6 MB / 493 MB, free: 2.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002168/0.4306, allocations: 135.9 kB / 493.2 MB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002283/0.4309, allocations: 87.97 kB / 493.2 MB, free: 1.816 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (190): * Single equations (assignments): 182 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,6,100.0%), (1,6,100.0%), (2,13,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001488/0.4323, allocations: 0.798 MB / 494 MB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005284/0.4329, allocations: 238.5 kB / 494.3 MB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007255/0.4401, allocations: 3.867 MB / 498.1 MB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.8e-05/0.4402, allocations: 24 kB / 498.2 MB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.4402, allocations: 8 kB / 498.2 MB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.292e-05/0.4402, allocations: 15.95 kB / 498.2 MB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01388/0.4541, allocations: 7.18 MB / 0.4935 GB, free: 5.539 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.4541, allocations: 4 kB / 0.4935 GB, free: 5.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001741/0.4559, allocations: 359.5 kB / 0.4939 GB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002548/0.4584, allocations: 0.9576 MB / 0.4948 GB, free: 4.207 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002312/0.4586, allocations: 59.95 kB / 0.4949 GB, free: 4.148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01539/0.474, allocations: 13.63 MB / 0.5082 GB, free: 5.957 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.474, allocations: 7.969 kB / 0.5082 GB, free: 5.949 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01009/0.4841, allocations: 5.618 MB / 0.5137 GB, free: 276 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/0.4858, allocations: 498.3 kB / 0.5141 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004378/0.4862, allocations: 48.11 kB / 0.5142 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/0.4876, allocations: 135.8 kB / 0.5143 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004912/0.4881, allocations: 173.6 kB / 0.5145 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001715/0.4883, allocations: 75.95 kB / 0.5146 GB, free: 15.36 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002226/0.4905, allocations: 1.519 MB / 0.516 GB, free: 13.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4905, allocations: 0 / 0.516 GB, free: 13.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002704/0.4932, allocations: 0.6952 MB / 0.5167 GB, free: 13.12 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.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 (162): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * 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): 5 systems {(1,6,100.0%), (1,6,100.0%), (2,13,100.0%), (2,12,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01184/0.5051, allocations: 6.661 MB / 0.5232 GB, free: 6.383 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006734/0.5118, allocations: 3.709 MB / 0.5268 GB, free: 2.621 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.5118, allocations: 4.125 kB / 0.5268 GB, free: 2.617 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004025/0.5158, allocations: 2.371 MB / 0.5292 GB, free: 180 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002284/0.5181, allocations: 490.1 kB / 0.5296 GB, free: 15.69 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04246/0.5606, allocations: 25.45 MB / 0.5545 GB, free: 5.844 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001925/0.5625, allocations: 2.079 MB / 0.5565 GB, free: 3.73 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001509/0.564, allocations: 498.5 kB / 0.557 GB, free: 3.242 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001525/0.5655, allocations: 1.089 MB / 0.558 GB, free: 2.152 MB / 478.1 MB Notification: Performance of SimCode: time 7.82e-07/0.5655, allocations: 4 kB / 0.5581 GB, free: 2.148 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2709/0.8364, allocations: 64.39 MB / 0.6209 GB, free: 107.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.86/23.7, allocations: 8.047 kB / 0.6209 GB, free: 107.5 MB / 478.1 MB " [Timeout remaining time 636] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/AsynchronousInductionMachines/AIMC_withLosses/AIMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 652] Reference file matches [Calling sys.exit(0), Time elapsed: 45.183774020988494]