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.001196/0.001196, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001186/0.001186, allocations: 189.2 kB / 24.49 MB, free: 3.934 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.3/1.3, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 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.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.001415/0.001415, allocations: 43.94 kB / 371.2 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.247, allocations: 52.18 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02146/0.2685, allocations: 18.78 MB / 442.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01137/0.2798, allocations: 6.126 MB / 448.3 MB, free: 5.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002846/0.2827, allocations: 174.9 kB / 448.5 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003377/0.286, allocations: 1.482 MB / 449.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005737/0.2918, allocations: 2.136 MB / 452.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002895/0.2947, allocations: 1.275 MB / 453.4 MB, free: 312 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008207/0.3029, allocations: 6.53 MB / 459.9 MB, free: 9.746 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004353/0.3072, allocations: 3.128 MB / 463 MB, free: 6.535 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004037/0.3113, allocations: 3.08 MB / 466.1 MB, free: 3.445 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00576/0.317, allocations: 3.639 MB / 469.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001935/0.319, allocations: 0.8164 MB / 470.6 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002932/0.3219, allocations: 1.089 MB / 471.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002076/0.324, allocations: 2.049 MB / 473.7 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004868/0.3288, allocations: 2.824 MB / 476.5 MB, free: 8.996 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01303/0.3419, allocations: 10.89 MB / 487.4 MB, free: 14.06 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3419, allocations: 0 / 487.4 MB, free: 14.06 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3419, allocations: 0 / 487.4 MB, free: 14.06 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002744/0.3422, allocations: 0 / 487.4 MB, free: 14.06 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.01523/0.3574, allocations: 7 MB / 494.4 MB, free: 6.996 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.3574, allocations: 15.97 kB / 494.4 MB, free: 6.98 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001512/0.3576, allocations: 139 kB / 494.6 MB, free: 6.844 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00101/0.3586, allocations: 0.7368 MB / 495.3 MB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004611/0.3632, allocations: 1.09 MB / 496.4 MB, free: 5.004 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006808/0.37, allocations: 3.68 MB / 0.4883 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003206/0.3703, allocations: 410.6 kB / 0.4887 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009165/0.3712, allocations: 0.5272 MB / 0.4893 GB, free: 340 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01241/0.3836, allocations: 7.282 MB / 0.4964 GB, free: 8.922 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001225/0.3838, allocations: 19.88 kB / 0.4964 GB, free: 8.902 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004979/0.3843, allocations: 220 kB / 0.4966 GB, free: 8.688 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002551/0.3845, allocations: 258.6 kB / 0.4968 GB, free: 8.434 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01025/0.3948, allocations: 5.948 MB / 0.5026 GB, free: 2.477 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03318/0.428, allocations: 19.92 MB / 0.5221 GB, free: 14.01 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006129/0.4341, allocations: 3.689 MB / 0.5257 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00306/0.4371, allocations: 1.983 MB / 0.5276 GB, free: 8.516 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01023/0.4474, allocations: 5.212 MB / 0.5327 GB, free: 3.273 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.496e-05/0.4474, allocations: 60.5 kB / 0.5328 GB, free: 3.203 MB / 446.1 MB Notification: Performance of pre-optimization done (n=220): time 3.997e-06/0.4474, allocations: 0 / 0.5328 GB, free: 3.203 MB / 446.1 MB Notification: Performance of matching and sorting (n=240): time 0.2027/0.6502, allocations: 10.18 MB / 0.5427 GB, free: 103.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.6502, allocations: 77.03 kB / 0.5428 GB, free: 103.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003348/0.6535, allocations: 3.147 MB / 0.5459 GB, free: 102.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.6537, allocations: 64.86 kB / 0.5459 GB, free: 102.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001029/0.6547, allocations: 2.571 MB / 0.5485 GB, free: 100.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004177/0.6551, allocations: 0.8694 MB / 0.5493 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006654/0.6558, allocations: 0.563 MB / 0.5499 GB, free: 99.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.238e-05/0.6558, allocations: 307.5 kB / 0.5501 GB, free: 99.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001622/0.6574, allocations: 1.336 MB / 0.5514 GB, free: 99.05 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001921/0.6594, allocations: 2.367 MB / 0.5538 GB, free: 97.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003636/0.663, allocations: 3.925 MB / 0.5576 GB, free: 92.97 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.348e-05/0.663, allocations: 8 kB / 0.5576 GB, free: 92.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.00569/0.6687, allocations: 4.552 MB / 0.562 GB, free: 88.83 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.6687, allocations: 20 kB / 0.5621 GB, free: 88.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.592e-05/0.6688, allocations: 32 kB / 0.5621 GB, free: 88.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009702/0.6697, allocations: 0.5235 MB / 0.5626 GB, free: 88.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002278/0.672, allocations: 0.7429 MB / 0.5633 GB, free: 87.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005775/0.6778, allocations: 9.724 MB / 0.5728 GB, free: 77.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002252/0.68, allocations: 183.8 kB / 0.573 GB, free: 77.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001794/0.6802, allocations: 140 kB / 0.5731 GB, free: 77.07 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.002113/0.6823, allocations: 1.577 MB / 0.5747 GB, free: 75.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004839/0.6828, allocations: 365.7 kB / 0.575 GB, free: 75.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005127/0.6879, allocations: 3.803 MB / 0.5787 GB, free: 71.28 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.6879, allocations: 24 kB / 0.5788 GB, free: 71.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.688, allocations: 8 kB / 0.5788 GB, free: 71.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.688, allocations: 11.95 kB / 0.5788 GB, free: 71.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/0.6983, allocations: 8.195 MB / 0.5868 GB, free: 62.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.6983, allocations: 8 kB / 0.5868 GB, free: 62.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001536/0.6999, allocations: 408 kB / 0.5872 GB, free: 62.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001555/0.7014, allocations: 0.7364 MB / 0.5879 GB, free: 61.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/0.7015, allocations: 71.91 kB / 0.588 GB, free: 61.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009904/0.7115, allocations: 15.81 MB / 0.6034 GB, free: 45.03 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.7115, allocations: 4 kB / 0.6034 GB, free: 45.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007231/0.7187, allocations: 5.616 MB / 0.6089 GB, free: 39.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001489/0.7202, allocations: 0.6381 MB / 0.6095 GB, free: 38.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004187/0.7206, allocations: 55.92 kB / 0.6096 GB, free: 38.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/0.7221, allocations: 135.9 kB / 0.6097 GB, free: 38.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003611/0.7224, allocations: 197.5 kB / 0.6099 GB, free: 38.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.7226, allocations: 71.98 kB / 0.61 GB, free: 38.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002425/0.725, allocations: 2.123 MB / 0.612 GB, free: 36.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.725, allocations: 0 / 0.612 GB, free: 36.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002889/0.7279, allocations: 1 MB / 0.613 GB, free: 35.1 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.007104/0.735, allocations: 6.314 MB / 0.6192 GB, free: 28.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00483/0.7398, allocations: 3.853 MB / 0.6229 GB, free: 24.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.7398, allocations: 0 / 0.6229 GB, free: 24.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003112/0.7429, allocations: 2.646 MB / 0.6255 GB, free: 22.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003641/0.7466, allocations: 0.9545 MB / 0.6265 GB, free: 21.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04631/0.7929, allocations: 35.34 MB / 0.661 GB, free: 416 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003287/0.7962, allocations: 2.902 MB / 0.6638 GB, free: 13.47 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002448/0.7986, allocations: 0.8073 MB / 0.6646 GB, free: 12.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002658/0.8013, allocations: 2.104 MB / 0.6666 GB, free: 10.55 MB / 478.1 MB Notification: Performance of SimCode: time 1.032e-06/0.8013, allocations: 0 / 0.6666 GB, free: 10.55 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4139/1.215, allocations: 93.75 MB / 0.7582 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.11/19.33, allocations: 7 kB / 0.7582 GB, free: 182.4 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 655] Reference file matches [Calling sys.exit(0), Time elapsed: 31.135869311052375]