Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.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.001458/0.001458, allocations: 122.5 kB / 17.78 MB, free: 5.121 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.001285/0.001285, allocations: 189.2 kB / 20.73 MB, free: 2.184 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.384/1.384, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 51.92 kB / 365.7 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09783/0.09931, allocations: 52.14 MB / 417.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02389/0.1232, allocations: 20.38 MB / 438.2 MB, free: 8.109 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01308/0.1363, allocations: 5.935 MB / 444.1 MB, free: 2.152 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004516/0.1408, allocations: 131.5 kB / 444.2 MB, free: 2.023 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005326/0.1461, allocations: 1.409 MB / 445.7 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2096/0.3557, allocations: 1.996 MB / 447.7 MB, free: 9.445 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003444/0.3592, allocations: 1.228 MB / 448.9 MB, free: 9.441 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007811/0.367, allocations: 6.113 MB / 455 MB, free: 9.43 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005854/0.3729, allocations: 3.811 MB / 458.8 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005279/0.3781, allocations: 2.854 MB / 461.7 MB, free: 8.332 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007435/0.3856, allocations: 3.449 MB / 465.1 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002711/0.3883, allocations: 0.7804 MB / 465.9 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004513/0.3928, allocations: 1.072 MB / 467 MB, free: 6.746 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002789/0.3956, allocations: 1.957 MB / 468.9 MB, free: 5.621 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007118/0.4027, allocations: 3.357 MB / 472.3 MB, free: 3.434 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01335/0.4161, allocations: 10.34 MB / 482.6 MB, free: 13.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.4161, allocations: 0 / 482.6 MB, free: 13.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4161, allocations: 0 / 482.6 MB, free: 13.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003291/0.4164, allocations: 0 / 482.6 MB, free: 13.61 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02001/0.4364, allocations: 6.736 MB / 489.3 MB, free: 9.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.4364, allocations: 12.83 kB / 489.4 MB, free: 9.113 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001733/0.4382, allocations: 0.7069 MB / 490.1 MB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004834/0.443, allocations: 1.031 MB / 491.1 MB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009085/0.4521, allocations: 3.595 MB / 494.7 MB, free: 5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004/0.4525, allocations: 386.2 kB / 495.1 MB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001549/0.454, allocations: 0.5076 MB / 495.6 MB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01384/0.4679, allocations: 6.775 MB / 0.4906 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000123/0.468, allocations: 11.95 kB / 0.4906 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005014/0.4685, allocations: 207 kB / 0.4908 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002529/0.4688, allocations: 246.2 kB / 0.491 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01171/0.4805, allocations: 5.752 MB / 0.4966 GB, free: 7.078 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0453/0.5258, allocations: 20.9 MB / 0.517 GB, free: 1.918 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01022/0.536, allocations: 8.342 MB / 0.5252 GB, free: 8.648 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003815/0.5398, allocations: 1.926 MB / 0.5271 GB, free: 6.719 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01435/0.5542, allocations: 5.916 MB / 0.5329 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.604e-05/0.5542, allocations: 60.5 kB / 0.5329 GB, free: 0.668 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 4.799e-06/0.5542, allocations: 0 / 0.5329 GB, free: 0.668 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.02463/0.5789, allocations: 10.44 MB / 0.5431 GB, free: 5.992 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.418e-05/0.5789, allocations: 73.41 kB / 0.5432 GB, free: 5.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006477/0.5854, allocations: 2.904 MB / 0.546 GB, free: 2.996 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004627/0.5859, allocations: 61.7 kB / 0.5461 GB, free: 2.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002277/0.5881, allocations: 2.417 MB / 0.5484 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001127/0.5893, allocations: 0.809 MB / 0.5492 GB, free: 15.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001632/0.5909, allocations: 0.514 MB / 0.5497 GB, free: 15.18 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.591, allocations: 305.1 kB / 0.55 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002584/0.5936, allocations: 1.271 MB / 0.5513 GB, free: 13.61 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00335/0.597, allocations: 2.178 MB / 0.5534 GB, free: 11.03 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00606/0.603, allocations: 3.665 MB / 0.557 GB, free: 6.973 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-05/0.6031, allocations: 12 kB / 0.557 GB, free: 6.961 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.009206/0.6123, allocations: 4.451 MB / 0.5613 GB, free: 2.445 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.838e-05/0.6123, allocations: 20 kB / 0.5613 GB, free: 2.426 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.118e-05/0.6124, allocations: 28 kB / 0.5614 GB, free: 2.398 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001284/0.6137, allocations: 0.5137 MB / 0.5619 GB, free: 1.863 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002869/0.6165, allocations: 0.6903 MB / 0.5625 GB, free: 1.172 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/0.6273, allocations: 10.19 MB / 0.5725 GB, free: 6.289 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003177/0.6305, allocations: 171.8 kB / 0.5727 GB, free: 6.121 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006245/0.6311, allocations: 128 kB / 0.5728 GB, free: 5.996 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004274/0.6354, allocations: 1.52 MB / 0.5743 GB, free: 4.465 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001292/0.6367, allocations: 333.9 kB / 0.5746 GB, free: 4.137 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00823/0.6449, allocations: 3.851 MB / 0.5783 GB, free: 192 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.045e-05/0.6449, allocations: 24.09 kB / 0.5784 GB, free: 168 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.568e-05/0.645, allocations: 12 kB / 0.5784 GB, free: 156 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.566e-05/0.645, allocations: 19.88 kB / 0.5784 GB, free: 136 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01965/0.6646, allocations: 8.446 MB / 0.5866 GB, free: 7.543 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/0.6647, allocations: 4 kB / 0.5866 GB, free: 7.539 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00177/0.6664, allocations: 387.9 kB / 0.587 GB, free: 7.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002052/0.6685, allocations: 0.7171 MB / 0.5877 GB, free: 6.418 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002467/0.6687, allocations: 63.91 kB / 0.5878 GB, free: 6.355 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01804/0.6868, allocations: 16.63 MB / 0.604 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.808e-06/0.6868, allocations: 8.016 kB / 0.604 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0106/0.6974, allocations: 5.547 MB / 0.6094 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00218/0.6995, allocations: 0.6667 MB / 0.6101 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009425/0.7005, allocations: 59.92 kB / 0.6102 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002134/0.7026, allocations: 135.9 kB / 0.6103 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004868/0.7031, allocations: 173.5 kB / 0.6104 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002111/0.7033, allocations: 63.98 kB / 0.6105 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004312/0.7076, allocations: 1.963 MB / 0.6124 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.7076, allocations: 0 / 0.6124 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004398/0.712, allocations: 0.9296 MB / 0.6133 GB, free: 10.93 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,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.01085/0.7229, allocations: 6.27 MB / 0.6195 GB, free: 4.512 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006916/0.7298, allocations: 3.82 MB / 0.6232 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.7298, allocations: 0 / 0.6232 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004563/0.7344, allocations: 2.582 MB / 0.6257 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005143/0.7395, allocations: 0.8357 MB / 0.6265 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2557/0.9952, allocations: 33.37 MB / 0.6591 GB, free: 176.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004356/0.9996, allocations: 3.296 MB / 0.6623 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002384/1.002, allocations: 0.767 MB / 0.6631 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00202/1.004, allocations: 1.938 MB / 0.665 GB, free: 174 MB / 0.5294 GB Notification: Performance of SimCode: time 1.362e-06/1.004, allocations: 0 / 0.665 GB, free: 174 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1614/1.165, allocations: 82.53 MB / 0.7456 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.76/17.93, allocations: 3.859 kB / 0.7456 GB, free: 104.1 MB / 0.5294 GB " [Timeout remaining time 642] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 25.894816156942397]