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.001319/0.001319, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 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.001377/0.001377, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 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 1.422/1.422, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 43.94 kB / 371.3 MB, free: 9.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2703, allocations: 52.19 MB / 423.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01253/0.2829, allocations: 9.749 MB / 433.2 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007771/0.2906, allocations: 3.603 MB / 436.8 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001954/0.2926, allocations: 59.62 kB / 436.9 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002461/0.295, allocations: 0.695 MB / 437.6 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003143/0.2982, allocations: 0.8817 MB / 438.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001349/0.2995, allocations: 474.4 kB / 438.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004197/0.3037, allocations: 2.65 MB / 441.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001886/0.3056, allocations: 1.109 MB / 442.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00215/0.3078, allocations: 1.211 MB / 443.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002912/0.3107, allocations: 1.541 MB / 445.4 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007048/0.3114, allocations: 308 kB / 445.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001572/0.313, allocations: 0.6438 MB / 446.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001427/0.3144, allocations: 1.044 MB / 447.4 MB, free: 6.492 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002354/0.3167, allocations: 1.481 MB / 448.9 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005922/0.3227, allocations: 4.308 MB / 453.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3227, allocations: 0 / 453.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3227, allocations: 4 kB / 453.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001354/0.3228, allocations: 0 / 453.2 MB, free: 0.6758 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.007865/0.3307, allocations: 3.177 MB / 456.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.3307, allocations: 8.031 kB / 456.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001107/0.3308, allocations: 66.05 kB / 456.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007189/0.3316, allocations: 367.8 kB / 456.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009688/0.3325, allocations: 350.9 kB / 457.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0035/0.336, allocations: 1.653 MB / 458.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001448/0.3362, allocations: 160.2 kB / 459 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004488/0.3366, allocations: 223.9 kB / 459.2 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005069/0.3417, allocations: 2.776 MB / 462 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.617e-05/0.3417, allocations: 11.94 kB / 462 MB, free: 7.703 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002016/0.342, allocations: 84 kB / 462 MB, free: 7.621 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001331/0.3421, allocations: 100.1 kB / 462.1 MB, free: 7.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00458/0.3467, allocations: 2.335 MB / 464.5 MB, free: 5.168 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01515/0.3618, allocations: 8.171 MB / 472.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003054/0.3649, allocations: 1.398 MB / 474 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002098/0.367, allocations: 1.114 MB / 475.2 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002186/0.3672, allocations: 57.25 kB / 475.2 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.3672, allocations: 55.88 kB / 475.3 MB, free: 10.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=142): time 3.687e-06/0.3672, allocations: 0 / 475.3 MB, free: 10.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.04045/0.4077, allocations: 13.86 MB / 489.1 MB, free: 12.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/0.4078, allocations: 77.34 kB / 489.2 MB, free: 12.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003937/0.4117, allocations: 2.152 MB / 491.4 MB, free: 9.922 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003865/0.4121, allocations: 65.69 kB / 491.4 MB, free: 9.852 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001132/0.4132, allocations: 1.123 MB / 492.5 MB, free: 8.719 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009887/0.4142, allocations: 0.7708 MB / 493.3 MB, free: 7.941 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009604/0.4152, allocations: 347.5 kB / 493.7 MB, free: 7.598 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.4153, allocations: 301.1 kB / 493.9 MB, free: 7.301 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002453/0.4177, allocations: 1.191 MB / 495.1 MB, free: 6.105 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002709/0.4205, allocations: 1.467 MB / 496.6 MB, free: 4.547 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005541/0.426, allocations: 2.808 MB / 499.4 MB, free: 1.648 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.631e-05/0.426, allocations: 4 kB / 499.4 MB, free: 1.645 MB / 398.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008947/0.435, allocations: 4.021 MB / 0.4916 GB, free: 13.6 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.525e-05/0.435, allocations: 8 kB / 0.4916 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.58e-05/0.435, allocations: 8 kB / 0.4917 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00309/0.4381, allocations: 1.098 MB / 0.4927 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002025/0.4401, allocations: 403.4 kB / 0.4931 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01993/0.4601, allocations: 14.61 MB / 0.5074 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002358/0.4624, allocations: 143.8 kB / 0.5075 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004534/0.4629, allocations: 84.05 kB / 0.5076 GB, free: 12.79 MB / 430.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.00217/0.4651, allocations: 0.8019 MB / 0.5084 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000927/0.466, allocations: 242.5 kB / 0.5086 GB, free: 11.74 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008529/0.4745, allocations: 3.852 MB / 0.5124 GB, free: 7.852 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-05/0.4746, allocations: 27.98 kB / 0.5124 GB, free: 7.824 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.956e-05/0.4746, allocations: 8 kB / 0.5124 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-05/0.4747, allocations: 11.91 kB / 0.5124 GB, free: 7.805 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01621/0.4909, allocations: 7.195 MB / 0.5194 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-05/0.4909, allocations: 0 / 0.5194 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001869/0.4928, allocations: 371.6 kB / 0.5198 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002827/0.4956, allocations: 0.9568 MB / 0.5207 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002973/0.4959, allocations: 59.95 kB / 0.5208 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01712/0.513, allocations: 13.63 MB / 0.5341 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.361e-06/0.513, allocations: 3.938 kB / 0.5341 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2183/0.7313, allocations: 5.616 MB / 0.5396 GB, free: 107.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.7327, allocations: 497.2 kB / 0.5401 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005241/0.7333, allocations: 45.72 kB / 0.5401 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001548/0.7348, allocations: 137.7 kB / 0.5402 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000486/0.7353, allocations: 176.9 kB / 0.5404 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00017/0.7355, allocations: 74.73 kB / 0.5405 GB, free: 107.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002079/0.7375, allocations: 1.524 MB / 0.542 GB, free: 106.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7375, allocations: 0 / 0.542 GB, free: 106.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002585/0.7401, allocations: 0.6861 MB / 0.5426 GB, free: 106.5 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.01042/0.7505, allocations: 6.672 MB / 0.5492 GB, free: 103.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005935/0.7565, allocations: 3.699 MB / 0.5528 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/0.7565, allocations: 4 kB / 0.5528 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003407/0.7599, allocations: 2.382 MB / 0.5551 GB, free: 99.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002359/0.7622, allocations: 469.2 kB / 0.5556 GB, free: 98.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03471/0.797, allocations: 25.44 MB / 0.5804 GB, free: 73.59 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001365/0.7983, allocations: 2.087 MB / 0.5824 GB, free: 71.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001387/0.7997, allocations: 498.5 kB / 0.5829 GB, free: 70.97 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/0.8009, allocations: 1.096 MB / 0.584 GB, free: 69.88 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.8009, allocations: 0 / 0.584 GB, free: 69.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1049/0.9058, allocations: 64.35 MB / 0.6468 GB, free: 5.883 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.87/24.78, allocations: 11.16 kB / 0.6468 GB, free: 5.875 MB / 446.1 MB " [Timeout remaining time 635] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/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 651] Reference file matches [Calling sys.exit(0), Time elapsed: 46.764701051986776]