Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008119/0.0008119, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8836/0.8836, allocations: 173.3 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 318.5 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.874e-05/2.013e-05, allocations: 5.516 kB / 318.5 MB, free: 6.316 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.007563/0.007583, allocations: 8.564 MB / 327 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005011/0.01259, allocations: 3.362 MB / 330.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001111/0.01371, allocations: 63.56 kB / 330.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001384/0.01509, allocations: 0.6636 MB / 331.1 MB, free: 9.609 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001755/0.01684, allocations: 0.9121 MB / 332 MB, free: 8.691 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008322/0.01768, allocations: 473.8 kB / 332.5 MB, free: 8.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002472/0.02015, allocations: 2.743 MB / 335.2 MB, free: 5.473 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001426/0.02157, allocations: 1.069 MB / 336.3 MB, free: 4.348 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002296/0.02387, allocations: 1.754 MB / 338.1 MB, free: 2.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00175/0.02562, allocations: 1.305 MB / 339.4 MB, free: 1.281 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005319/0.02615, allocations: 304 kB / 339.7 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001318/0.02747, allocations: 0.554 MB / 340.2 MB, free: 436 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007567/0.02823, allocations: 1.063 MB / 341.3 MB, free: 15.36 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001357/0.02958, allocations: 0.9897 MB / 342.3 MB, free: 14.37 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004421/0.034, allocations: 4.323 MB / 346.6 MB, free: 10.03 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.03401, allocations: 0 / 346.6 MB, free: 10.03 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.03402, allocations: 0 / 346.6 MB, free: 10.03 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001756/0.03419, allocations: 4 kB / 346.6 MB, free: 10.03 MB / 314.7 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.005017/0.03921, allocations: 3.138 MB / 349.7 MB, free: 6.836 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.03925, allocations: 8.922 kB / 349.8 MB, free: 6.828 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003648/0.03962, allocations: 359.4 kB / 350.1 MB, free: 6.461 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005373/0.04016, allocations: 342.8 kB / 350.4 MB, free: 6.125 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001916/0.04207, allocations: 1.641 MB / 352.1 MB, free: 4.445 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.458e-05/0.04216, allocations: 156.4 kB / 352.2 MB, free: 4.289 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002095/0.04237, allocations: 220 kB / 352.4 MB, free: 4.074 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003207/0.04557, allocations: 2.824 MB / 355.3 MB, free: 1.145 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.237e-05/0.04561, allocations: 11.92 kB / 355.3 MB, free: 1.133 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001298/0.04574, allocations: 83.94 kB / 355.4 MB, free: 1.051 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.077e-05/0.04582, allocations: 96.05 kB / 355.5 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002564/0.04839, allocations: 2.296 MB / 357.8 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008101/0.05649, allocations: 7.433 MB / 365.2 MB, free: 6.988 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/0.05821, allocations: 1.314 MB / 366.5 MB, free: 5.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/0.05938, allocations: 1.026 MB / 367.5 MB, free: 4.637 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001504/0.05953, allocations: 48.97 kB / 367.6 MB, free: 4.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.05956, allocations: 43.56 kB / 367.6 MB, free: 4.535 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 3.927e-06/0.05957, allocations: 0 / 367.6 MB, free: 4.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.008632/0.0682, allocations: 6.098 MB / 373.7 MB, free: 14.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.06824, allocations: 64.72 kB / 373.8 MB, free: 14.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002343/0.07058, allocations: 2.168 MB / 375.9 MB, free: 12.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.07069, allocations: 49.7 kB / 376 MB, free: 12.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006558/0.07135, allocations: 1.137 MB / 377.1 MB, free: 10.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003089/0.07166, allocations: 475.9 kB / 377.6 MB, free: 10.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002956/0.07195, allocations: 243.5 kB / 377.8 MB, free: 10.19 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.07207, allocations: 361.9 kB / 378.2 MB, free: 9.828 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009288/0.073, allocations: 0.7574 MB / 378.9 MB, free: 9.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.07421, allocations: 1.013 MB / 380 MB, free: 7.969 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002485/0.0767, allocations: 1.861 MB / 381.8 MB, free: 6.016 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.0767, allocations: 3.938 kB / 381.8 MB, free: 6.012 MB / 346.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003486/0.08019, allocations: 2.75 MB / 384.6 MB, free: 3.242 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.08021, allocations: 11.98 kB / 384.6 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.08023, allocations: 11.94 kB / 384.6 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/0.08157, allocations: 0.7891 MB / 385.4 MB, free: 2.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006328/0.0822, allocations: 271.6 kB / 385.7 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00804/0.09024, allocations: 9.286 MB / 394.9 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009402/0.09118, allocations: 91.83 kB / 395 MB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.832e-05/0.09128, allocations: 55.98 kB / 395.1 MB, free: 8.5 MB / 362.7 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 (126): * Single equations (assignments): 122 * Array equations: 2 * 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,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001075/0.09235, allocations: 0.7395 MB / 395.8 MB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002837/0.09264, allocations: 214.6 kB / 396 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002911/0.09555, allocations: 2.485 MB / 398.5 MB, free: 5.031 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.447e-05/0.09557, allocations: 16 kB / 398.5 MB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.09558, allocations: 4 kB / 398.5 MB, free: 5.012 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.09559, allocations: 3.984 kB / 398.5 MB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005934/0.1015, allocations: 4.653 MB / 403.2 MB, free: 276 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.1015, allocations: 4 kB / 403.2 MB, free: 272 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005419/0.1021, allocations: 211.7 kB / 403.4 MB, free: 60 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001046/0.1031, allocations: 0.6435 MB / 404 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.542e-05/0.1032, allocations: 39.88 kB / 404.1 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006172/0.1094, allocations: 8.338 MB / 412.4 MB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1094, allocations: 0 / 412.4 MB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004036/0.1134, allocations: 3.522 MB / 415.9 MB, free: 3.129 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008487/0.1143, allocations: 374.5 kB / 416.3 MB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002322/0.1145, allocations: 31.98 kB / 416.3 MB, free: 2.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005415/0.115, allocations: 79.91 kB / 416.4 MB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002273/0.1153, allocations: 116.7 kB / 416.5 MB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.616e-05/0.1153, allocations: 39.98 kB / 416.6 MB, free: 2.496 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0016/0.1169, allocations: 1.515 MB / 418.1 MB, free: 0.957 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1169, allocations: 0 / 418.1 MB, free: 0.957 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001374/0.1183, allocations: 0.5274 MB / 418.6 MB, free: 440 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(2,12,100.0%), (1,6,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.004694/0.123, allocations: 4.474 MB / 423.1 MB, free: 12.06 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00285/0.1258, allocations: 2.303 MB / 425.4 MB, free: 9.723 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.1259, allocations: 4 kB / 425.4 MB, free: 9.719 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00161/0.1275, allocations: 1.467 MB / 426.9 MB, free: 8.211 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/0.129, allocations: 448.4 kB / 427.3 MB, free: 7.773 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02712/0.1561, allocations: 21.07 MB / 448.4 MB, free: 2.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001263/0.1573, allocations: 1.388 MB / 449.8 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008591/0.1582, allocations: 387.7 kB / 450.1 MB, free: 476 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1338/0.292, allocations: 0.9732 MB / 451.1 MB, free: 121 MB / 410.7 MB Notification: Performance of SimCode: time 7.92e-07/0.292, allocations: 0.8125 kB / 451.1 MB, free: 121 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06719/0.3592, allocations: 54.63 MB / 0.4939 GB, free: 74.17 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.69/9.049, allocations: 7.844 kB / 0.4939 GB, free: 74.16 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 16.520641441456974]