Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.001546/0.001546, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001623/0.001623, allocations: 188.8 kB / 24.5 MB, free: 4.172 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.356/1.356, allocations: 225.6 MB / 253.3 MB, free: 13.04 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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 59.91 kB / 371.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2631, allocations: 52.18 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.0256/0.2887, allocations: 21.89 MB / 445.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01428/0.303, allocations: 6.433 MB / 451.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00403/0.307, allocations: 174.9 kB / 451.9 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004778/0.3118, allocations: 1.557 MB / 453.5 MB, free: 456 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006944/0.3188, allocations: 2.178 MB / 455.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004042/0.3228, allocations: 1.306 MB / 457 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01053/0.3333, allocations: 6.534 MB / 463.5 MB, free: 6.391 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005412/0.3387, allocations: 3.136 MB / 466.6 MB, free: 3.172 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005037/0.3438, allocations: 3.076 MB / 469.7 MB, free: 88 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006602/0.3504, allocations: 3.639 MB / 473.4 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001984/0.3524, allocations: 0.8164 MB / 474.2 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002794/0.3552, allocations: 1.097 MB / 475.3 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002129/0.3573, allocations: 2.049 MB / 477.3 MB, free: 8.465 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00481/0.3621, allocations: 3.539 MB / 480.9 MB, free: 4.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0155/0.3776, allocations: 10.83 MB / 491.7 MB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.182e-05/0.3776, allocations: 4 kB / 491.7 MB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3776, allocations: 0 / 491.7 MB, free: 10.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003428/0.378, allocations: 0 / 491.7 MB, free: 10.04 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01992/0.3979, allocations: 7.008 MB / 498.7 MB, free: 2.961 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/0.3979, allocations: 12.03 kB / 498.7 MB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000143/0.3981, allocations: 147 kB / 498.9 MB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001225/0.3993, allocations: 0.7329 MB / 499.6 MB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004683/0.404, allocations: 1.09 MB / 0.4889 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007277/0.4113, allocations: 3.672 MB / 0.4925 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003382/0.4116, allocations: 406.7 kB / 0.4929 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008626/0.4125, allocations: 0.5311 MB / 0.4934 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01284/0.4253, allocations: 7.059 MB / 0.5003 GB, free: 5.172 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001179/0.4254, allocations: 7.953 kB / 0.5003 GB, free: 5.164 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004902/0.4259, allocations: 220 kB / 0.5006 GB, free: 4.949 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002614/0.4262, allocations: 262.6 kB / 0.5008 GB, free: 4.691 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01262/0.4388, allocations: 5.952 MB / 0.5066 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04188/0.4807, allocations: 21.79 MB / 0.5279 GB, free: 8.391 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007182/0.4879, allocations: 3.707 MB / 0.5315 GB, free: 4.859 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003489/0.4914, allocations: 1.987 MB / 0.5335 GB, free: 2.871 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2625/0.7538, allocations: 5.745 MB / 0.5391 GB, free: 101.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.7538, allocations: 59.03 kB / 0.5391 GB, free: 101.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=220): time 4.338e-06/0.7539, allocations: 0 / 0.5391 GB, free: 101.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=240): time 0.02055/0.7744, allocations: 10.19 MB / 0.5491 GB, free: 97.86 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.7744, allocations: 84.66 kB / 0.5492 GB, free: 97.79 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0043/0.7787, allocations: 3.147 MB / 0.5522 GB, free: 96.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001844/0.7789, allocations: 71.89 kB / 0.5523 GB, free: 96.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001413/0.7803, allocations: 2.562 MB / 0.5548 GB, free: 94.94 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006047/0.781, allocations: 0.8744 MB / 0.5557 GB, free: 94.36 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008298/0.7818, allocations: 0.5592 MB / 0.5562 GB, free: 94.09 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.924e-05/0.7819, allocations: 302.6 kB / 0.5565 GB, free: 93.79 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001935/0.7838, allocations: 1.337 MB / 0.5578 GB, free: 93.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002437/0.7862, allocations: 2.34 MB / 0.5601 GB, free: 91.49 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004228/0.7905, allocations: 3.923 MB / 0.5639 GB, free: 87.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.568e-05/0.7905, allocations: 12 kB / 0.5639 GB, free: 87.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006322/0.7968, allocations: 4.556 MB / 0.5684 GB, free: 82.89 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.252e-05/0.7968, allocations: 24.56 kB / 0.5684 GB, free: 82.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-05/0.7969, allocations: 32 kB / 0.5684 GB, free: 82.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.7979, allocations: 0.5217 MB / 0.5689 GB, free: 82.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002377/0.8002, allocations: 0.7449 MB / 0.5697 GB, free: 81.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006489/0.8067, allocations: 9.778 MB / 0.5792 GB, free: 71.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003201/0.8099, allocations: 187.8 kB / 0.5794 GB, free: 71.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002931/0.8102, allocations: 140 kB / 0.5795 GB, free: 70.91 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * 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,12,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.003094/0.8133, allocations: 1.569 MB / 0.5811 GB, free: 69.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008007/0.8141, allocations: 362.6 kB / 0.5814 GB, free: 68.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005607/0.8197, allocations: 3.808 MB / 0.5851 GB, free: 65.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/0.8198, allocations: 24 kB / 0.5851 GB, free: 65.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/0.8198, allocations: 8 kB / 0.5851 GB, free: 65.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.692e-05/0.8198, allocations: 11.95 kB / 0.5852 GB, free: 65.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/0.8325, allocations: 8.699 MB / 0.5937 GB, free: 56.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.8325, allocations: 4 kB / 0.5937 GB, free: 56.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/0.8341, allocations: 411.4 kB / 0.5941 GB, free: 55.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001694/0.8358, allocations: 0.7365 MB / 0.5948 GB, free: 55.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001546/0.836, allocations: 71.97 kB / 0.5948 GB, free: 55.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01059/0.8466, allocations: 15.93 MB / 0.6104 GB, free: 38.26 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.8466, allocations: 7.938 kB / 0.6104 GB, free: 38.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008026/0.8546, allocations: 5.616 MB / 0.6159 GB, free: 32.54 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/0.8566, allocations: 0.6382 MB / 0.6165 GB, free: 31.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000882/0.8575, allocations: 59.98 kB / 0.6166 GB, free: 31.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002061/0.8596, allocations: 135.9 kB / 0.6167 GB, free: 31.71 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004258/0.86, allocations: 193.5 kB / 0.6169 GB, free: 31.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001632/0.8602, allocations: 71.98 kB / 0.6169 GB, free: 31.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004023/0.8642, allocations: 2.126 MB / 0.619 GB, free: 29.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8642, allocations: 3.938 kB / 0.619 GB, free: 29.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004613/0.8688, allocations: 0.996 MB / 0.62 GB, free: 28.33 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 (201): * Single equations (assignments): 193 * 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,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,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.008726/0.8775, allocations: 6.312 MB / 0.6262 GB, free: 21.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005885/0.8834, allocations: 3.851 MB / 0.6299 GB, free: 17.99 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.188e-06/0.8834, allocations: 0 / 0.6299 GB, free: 17.99 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003461/0.8869, allocations: 2.651 MB / 0.6325 GB, free: 15.24 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005334/0.8922, allocations: 0.9546 MB / 0.6334 GB, free: 14.31 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0692/0.9614, allocations: 35.36 MB / 0.668 GB, free: 9.605 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003555/0.965, allocations: 3.411 MB / 0.6713 GB, free: 6.156 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002577/0.9676, allocations: 0.8073 MB / 0.6721 GB, free: 5.348 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002768/0.9703, allocations: 2.1 MB / 0.6741 GB, free: 3.246 MB / 478.1 MB Notification: Performance of SimCode: time 8.32e-07/0.9703, allocations: 0 / 0.6741 GB, free: 3.246 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4107/1.381, allocations: 91.45 MB / 0.7635 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.3/19.68, allocations: 9.203 kB / 0.7635 GB, free: 178.8 MB / 0.5294 GB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 654] Reference file matches [Calling sys.exit(0), Time elapsed: 32.116704855056014]