Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.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.001635/0.001635, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001982/0.001982, allocations: 216.4 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 44.06 kB / 377.8 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2908, allocations: 53.37 MB / 431.2 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz): time 0.01808/0.3088, allocations: 14.38 MB / 445.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01008/0.3189, allocations: 4.716 MB / 450.3 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002368/0.3213, allocations: 103.4 kB / 450.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003489/0.3248, allocations: 1.06 MB / 451.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004845/0.3296, allocations: 1.344 MB / 452.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002572/0.3322, allocations: 0.9617 MB / 453.7 MB, free: 308 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005951/0.3381, allocations: 4.157 MB / 457.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003152/0.3413, allocations: 1.805 MB / 459.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003392/0.3447, allocations: 1.951 MB / 461.6 MB, free: 8.297 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004196/0.3489, allocations: 2.246 MB / 463.9 MB, free: 6.043 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001037/0.3499, allocations: 0.5117 MB / 464.4 MB, free: 5.531 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001775/0.3517, allocations: 0.7341 MB / 465.1 MB, free: 4.797 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001139/0.3528, allocations: 1.13 MB / 466.3 MB, free: 3.664 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003778/0.3566, allocations: 2.147 MB / 468.4 MB, free: 1.508 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01012/0.3667, allocations: 6.755 MB / 475.2 MB, free: 10.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.037e-05/0.3667, allocations: 7.938 kB / 475.2 MB, free: 10.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3667, allocations: 3.938 kB / 475.2 MB, free: 10.72 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001872/0.3669, allocations: 4 kB / 475.2 MB, free: 10.71 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01272/0.3797, allocations: 4.44 MB / 479.6 MB, free: 6.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.3797, allocations: 12.03 kB / 479.6 MB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007643/0.3805, allocations: 455.8 kB / 480.1 MB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004292/0.3848, allocations: 0.83 MB / 480.9 MB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005714/0.3905, allocations: 2.404 MB / 483.3 MB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002374/0.3907, allocations: 246.5 kB / 483.6 MB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000712/0.3914, allocations: 327.9 kB / 483.9 MB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009942/0.4014, allocations: 4.27 MB / 488.1 MB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001438/0.4015, allocations: 7.938 kB / 488.1 MB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005972/0.4021, allocations: 132 kB / 488.3 MB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001896/0.4023, allocations: 150.4 kB / 488.4 MB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008574/0.4109, allocations: 3.605 MB / 492 MB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02934/0.4402, allocations: 13.51 MB / 0.4937 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00579/0.446, allocations: 2.601 MB / 0.4962 GB, free: 9.305 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002699/0.4487, allocations: 1.281 MB / 0.4975 GB, free: 8.027 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008358/0.4571, allocations: 3.423 MB / 0.5008 GB, free: 4.578 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.066e-05/0.4571, allocations: 59.8 kB / 0.5009 GB, free: 4.508 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 5.03e-06/0.4571, allocations: 0 / 0.5009 GB, free: 4.508 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01553/0.4727, allocations: 5.233 MB / 0.506 GB, free: 15.23 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002352/0.4729, allocations: 64.72 kB / 0.506 GB, free: 15.16 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004762/0.4777, allocations: 1.813 MB / 0.5078 GB, free: 13.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002554/0.4779, allocations: 45.7 kB / 0.5079 GB, free: 13.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001456/0.4794, allocations: 1.486 MB / 0.5093 GB, free: 11.79 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007151/0.4801, allocations: 0.4919 MB / 0.5098 GB, free: 11.3 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006917/0.4808, allocations: 319.4 kB / 0.5101 GB, free: 10.98 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.4809, allocations: 309.1 kB / 0.5104 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.4823, allocations: 0.6832 MB / 0.5111 GB, free: 9.992 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/0.4841, allocations: 1.197 MB / 0.5122 GB, free: 8.57 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003261/0.4874, allocations: 1.999 MB / 0.5142 GB, free: 6.348 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.842e-05/0.4874, allocations: 4 kB / 0.5142 GB, free: 6.344 MB / 430.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.005106/0.4925, allocations: 2.48 MB / 0.5166 GB, free: 3.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/0.4925, allocations: 12 kB / 0.5166 GB, free: 3.828 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.521e-05/0.4926, allocations: 23.92 kB / 0.5166 GB, free: 3.805 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.4937, allocations: 360.3 kB / 0.517 GB, free: 3.438 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.4951, allocations: 371.4 kB / 0.5173 GB, free: 3.074 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009052/0.5041, allocations: 7.988 MB / 0.5251 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.5057, allocations: 75.92 kB / 0.5252 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002629/0.506, allocations: 75.98 kB / 0.5253 GB, free: 10.49 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002352/0.5083, allocations: 1.009 MB / 0.5263 GB, free: 9.469 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006141/0.5089, allocations: 206.6 kB / 0.5265 GB, free: 9.266 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00463/0.5136, allocations: 2.112 MB / 0.5285 GB, free: 7.117 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/0.5136, allocations: 16 kB / 0.5285 GB, free: 7.102 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.99e-05/0.5136, allocations: 12 kB / 0.5286 GB, free: 7.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.895e-05/0.5136, allocations: 7.969 kB / 0.5286 GB, free: 7.082 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/0.5245, allocations: 4.901 MB / 0.5334 GB, free: 2.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.5245, allocations: 4 kB / 0.5334 GB, free: 2.086 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008426/0.5253, allocations: 171.8 kB / 0.5335 GB, free: 1.918 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001607/0.5269, allocations: 0.5397 MB / 0.534 GB, free: 1.363 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.5271, allocations: 39.92 kB / 0.5341 GB, free: 1.324 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2385/0.7656, allocations: 12.62 MB / 0.5464 GB, free: 89.49 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.7656, allocations: 0 / 0.5464 GB, free: 89.49 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004939/0.7705, allocations: 3.067 MB / 0.5494 GB, free: 88.17 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/0.7716, allocations: 362.2 kB / 0.5497 GB, free: 88.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002631/0.7718, allocations: 38.89 kB / 0.5498 GB, free: 88.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008187/0.7727, allocations: 57.92 kB / 0.5498 GB, free: 88.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003012/0.773, allocations: 122 kB / 0.55 GB, free: 88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.128e-05/0.773, allocations: 39.03 kB / 0.55 GB, free: 87.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001529/0.7746, allocations: 1.235 MB / 0.5512 GB, free: 87.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7746, allocations: 0 / 0.5512 GB, free: 87.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002002/0.7766, allocations: 0.5781 MB / 0.5518 GB, free: 87.45 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004326/0.7809, allocations: 3.693 MB / 0.5554 GB, free: 85.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003089/0.784, allocations: 2.207 MB / 0.5575 GB, free: 84.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.784, allocations: 5.344 kB / 0.5575 GB, free: 84.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002028/0.786, allocations: 1.683 MB / 0.5592 GB, free: 83.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002026/0.788, allocations: 0.5545 MB / 0.5597 GB, free: 83.17 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0246/0.8126, allocations: 20.13 MB / 0.5794 GB, free: 64.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001517/0.8141, allocations: 2.311 MB / 0.5816 GB, free: 62.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001137/0.8153, allocations: 401.2 kB / 0.582 GB, free: 61.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001062/0.8163, allocations: 1.148 MB / 0.5831 GB, free: 60.56 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.8163, allocations: 0 / 0.5831 GB, free: 60.56 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1036/0.9199, allocations: 55.63 MB / 0.6375 GB, free: 5.445 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.77/16.69, allocations: 11.12 kB / 0.6375 GB, free: 5.438 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.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: 21.448291735025123]