Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.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.0009982/0.0009982, 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.001003/0.001003, 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.9033/0.9033, allocations: 173.4 MB / 200.5 MB, free: 9.426 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_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.886e-05/2.06e-05, allocations: 2.281 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.009677/0.009698, allocations: 7.909 MB / 326.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003897/0.01359, allocations: 2.699 MB / 329.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004116/0.01401, allocations: 55.69 kB / 329.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009215/0.01493, allocations: 0.6016 MB / 329.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00106/0.01599, allocations: 0.8033 MB / 330.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003685/0.01636, allocations: 323.4 kB / 330.8 MB, free: 9.895 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001563/0.01792, allocations: 2.449 MB / 333.3 MB, free: 7.434 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008664/0.01878, allocations: 0.9813 MB / 334.3 MB, free: 6.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001315/0.0201, allocations: 1.579 MB / 335.8 MB, free: 4.828 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009598/0.02106, allocations: 1.173 MB / 337 MB, free: 3.652 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000198/0.02126, allocations: 280 kB / 337.3 MB, free: 3.379 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003577/0.02161, allocations: 371.8 kB / 337.6 MB, free: 3.016 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000574/0.02219, allocations: 0.8336 MB / 338.5 MB, free: 2.176 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005381/0.02273, allocations: 0.8691 MB / 339.4 MB, free: 1.305 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001991/0.02472, allocations: 3.72 MB / 343.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.02472, allocations: 0 / 343.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.02472, allocations: 0 / 343.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.709e-05/0.02474, allocations: 0 / 343.1 MB, free: 13.57 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.002543/0.02728, allocations: 2.548 MB / 345.6 MB, free: 10.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001651/0.02745, allocations: 12.92 kB / 345.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002222/0.02767, allocations: 262 kB / 345.9 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003753/0.02804, allocations: 271.4 kB / 346.2 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001388/0.02943, allocations: 1.333 MB / 347.5 MB, free: 9.066 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.623e-05/0.0295, allocations: 132 kB / 347.6 MB, free: 8.938 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001806/0.02968, allocations: 184.3 kB / 347.8 MB, free: 8.758 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002379/0.03206, allocations: 2.514 MB / 350.3 MB, free: 6.184 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.41e-05/0.03209, allocations: 3.938 kB / 350.3 MB, free: 6.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.03221, allocations: 75.98 kB / 350.4 MB, free: 6.105 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-05/0.03227, allocations: 91.48 kB / 350.5 MB, free: 6.016 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002125/0.03439, allocations: 2.009 MB / 352.5 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00771/0.0421, allocations: 6.668 MB / 359.2 MB, free: 13.13 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.04338, allocations: 0.9849 MB / 360.1 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.04439, allocations: 0.8654 MB / 361 MB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/0.04452, allocations: 44.97 kB / 361 MB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.04455, allocations: 39.56 kB / 361.1 MB, free: 11.17 MB / 330.7 MB Notification: Performance of pre-optimization done (n=84): time 2.585e-06/0.04455, allocations: 0 / 361.1 MB, free: 11.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=100): time 0.005435/0.04999, allocations: 4.683 MB / 365.8 MB, free: 6.449 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.05002, allocations: 64.41 kB / 365.8 MB, free: 6.375 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/0.05135, allocations: 1.388 MB / 367.2 MB, free: 4.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.34e-05/0.05141, allocations: 45.7 kB / 367.3 MB, free: 4.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004154/0.05182, allocations: 0.9148 MB / 368.2 MB, free: 4.004 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/0.052, allocations: 360.9 kB / 368.5 MB, free: 3.648 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002176/0.05222, allocations: 218.8 kB / 368.7 MB, free: 3.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.196e-05/0.05231, allocations: 357.9 kB / 369.1 MB, free: 3.074 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000633/0.05294, allocations: 0.6272 MB / 369.7 MB, free: 2.445 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007551/0.0537, allocations: 0.9336 MB / 370.7 MB, free: 1.391 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.05517, allocations: 1.641 MB / 372.3 MB, free: 15.63 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.05517, allocations: 3.938 kB / 372.3 MB, free: 15.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002718/0.05789, allocations: 2.383 MB / 374.7 MB, free: 13.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.05791, allocations: 8 kB / 374.7 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.05792, allocations: 8 kB / 374.7 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.05894, allocations: 0.712 MB / 375.4 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004534/0.05939, allocations: 239.6 kB / 375.6 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006816/0.06621, allocations: 8.426 MB / 384.1 MB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005785/0.06679, allocations: 83.97 kB / 384.2 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-05/0.06685, allocations: 47.98 kB / 384.2 MB, free: 3.477 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (114): * Single equations (assignments): 112 * 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%), (6,29,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007898/0.06764, allocations: 0.63 MB / 384.8 MB, free: 2.836 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/0.06781, allocations: 159 kB / 385 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001987/0.0698, allocations: 1.893 MB / 386.9 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.0698, allocations: 8 kB / 386.9 MB, free: 0.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.06981, allocations: 4 kB / 386.9 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.06981, allocations: 3.984 kB / 386.9 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00413/0.07394, allocations: 3.746 MB / 390.6 MB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.07395, allocations: 3.984 kB / 390.6 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004153/0.07436, allocations: 187.7 kB / 390.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006708/0.07503, allocations: 455.2 kB / 391.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-05/0.07509, allocations: 31.97 kB / 391.3 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004065/0.07915, allocations: 6.342 MB / 397.6 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.07916, allocations: 4.031 kB / 397.6 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/0.08186, allocations: 2.768 MB / 400.4 MB, free: 2.734 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004248/0.08229, allocations: 286.9 kB / 400.7 MB, free: 2.453 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.0824, allocations: 31.94 kB / 400.7 MB, free: 2.422 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004078/0.0828, allocations: 71.91 kB / 400.8 MB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.08295, allocations: 80.84 kB / 400.9 MB, free: 2.273 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.155e-05/0.08299, allocations: 31.92 kB / 400.9 MB, free: 2.242 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008909/0.08388, allocations: 0.9543 MB / 401.9 MB, free: 1.285 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.08388, allocations: 0 / 401.9 MB, free: 1.285 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000957/0.08484, allocations: 431.9 kB / 402.3 MB, free: 0.8633 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (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) * 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 (84): * Single equations (assignments): 80 * Array equations: 0 * 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,1,100.0%), (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.00293/0.08777, allocations: 3.396 MB / 405.7 MB, free: 13.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00206/0.08983, allocations: 1.941 MB / 407.6 MB, free: 11.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.08983, allocations: 4 kB / 407.6 MB, free: 11.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00111/0.09094, allocations: 1.225 MB / 408.9 MB, free: 10.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.09194, allocations: 387.1 kB / 409.2 MB, free: 9.797 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01862/0.1106, allocations: 16.28 MB / 425.5 MB, free: 9.035 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008536/0.1114, allocations: 1.114 MB / 426.6 MB, free: 7.875 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006234/0.112, allocations: 320 kB / 426.9 MB, free: 7.559 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007673/0.1128, allocations: 0.6995 MB / 427.6 MB, free: 6.859 MB / 394.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1128, allocations: 0 / 427.6 MB, free: 6.859 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1859/0.2987, allocations: 42.82 MB / 470.5 MB, free: 110.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.202/8.501, allocations: 6.875 kB / 470.5 MB, free: 110.3 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 11.43723488599062]