Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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.0009119/0.0009119, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.005622/0.005622, allocations: 165.6 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8769/0.8769, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 298.5 MB, free: 3.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.491e-05/1.67e-05, allocations: 2.281 kB / 298.5 MB, free: 3.477 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.1314/0.1314, allocations: 18.74 MB / 317.2 MB, free: 4.586 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01106/0.1425, allocations: 6.198 MB / 323.4 MB, free: 172 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003414/0.1459, allocations: 156.7 kB / 323.6 MB, free: 104 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003762/0.1497, allocations: 1.487 MB / 325.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006338/0.156, allocations: 2.142 MB / 327.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003059/0.1591, allocations: 1.318 MB / 328.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009488/0.1686, allocations: 6.802 MB / 335.3 MB, free: 8.441 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004582/0.1731, allocations: 2.966 MB / 338.3 MB, free: 6.555 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008185/0.1813, allocations: 4.518 MB / 342.8 MB, free: 2.258 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004558/0.1859, allocations: 3.012 MB / 345.8 MB, free: 15.24 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.187, allocations: 0.8203 MB / 346.6 MB, free: 14.42 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001902/0.1889, allocations: 1.085 MB / 347.7 MB, free: 13.33 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001228/0.1901, allocations: 2.088 MB / 349.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002526/0.1927, allocations: 2.405 MB / 352.2 MB, free: 8.828 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009308/0.202, allocations: 10.91 MB / 363.1 MB, free: 13.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.202, allocations: 0 / 363.1 MB, free: 13.89 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.202, allocations: 0 / 363.1 MB, free: 13.89 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003077/0.2023, allocations: 0 / 363.1 MB, free: 13.89 MB / 330.7 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.01407/0.2164, allocations: 6.937 MB / 370.1 MB, free: 6.883 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.916e-05/0.2164, allocations: 19.92 kB / 370.1 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001583/0.218, allocations: 0.729 MB / 370.8 MB, free: 6.125 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003216/0.2212, allocations: 1.098 MB / 371.9 MB, free: 5.023 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006654/0.2279, allocations: 3.406 MB / 375.3 MB, free: 1.547 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002382/0.2281, allocations: 407.1 kB / 375.7 MB, free: 1.148 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009224/0.2291, allocations: 0.5242 MB / 376.2 MB, free: 0.625 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009559/0.2386, allocations: 7.29 MB / 383.5 MB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.953e-05/0.2387, allocations: 7.953 kB / 383.5 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003873/0.2391, allocations: 216 kB / 383.7 MB, free: 8.988 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001705/0.2393, allocations: 266.5 kB / 384 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007813/0.2471, allocations: 5.925 MB / 389.9 MB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02774/0.2748, allocations: 19.94 MB / 409.9 MB, free: 14.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004602/0.2794, allocations: 3.69 MB / 413.5 MB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002186/0.2816, allocations: 1.976 MB / 415.5 MB, free: 8.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007554/0.2892, allocations: 5.206 MB / 420.7 MB, free: 3.605 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.2892, allocations: 64.5 kB / 420.8 MB, free: 3.535 MB / 378.7 MB Notification: Performance of pre-optimization done (n=220): time 3.506e-06/0.2892, allocations: 4 kB / 420.8 MB, free: 3.531 MB / 378.7 MB Notification: Performance of matching and sorting (n=240): time 0.01447/0.3037, allocations: 10.21 MB / 431 MB, free: 9.312 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.3037, allocations: 77.41 kB / 431.1 MB, free: 9.223 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003648/0.3074, allocations: 3.21 MB / 434.3 MB, free: 6.012 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001649/0.3075, allocations: 69.7 kB / 434.4 MB, free: 5.938 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001202/0.3087, allocations: 2.56 MB / 436.9 MB, free: 3.355 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006368/0.3094, allocations: 0.8599 MB / 437.8 MB, free: 2.488 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005565/0.3099, allocations: 0.55 MB / 438.3 MB, free: 1.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.64e-05/0.31, allocations: 301.1 kB / 438.6 MB, free: 1.633 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001454/0.3115, allocations: 1.341 MB / 440 MB, free: 296 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001819/0.3133, allocations: 2.368 MB / 442.3 MB, free: 13.47 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003562/0.3168, allocations: 3.916 MB / 446.2 MB, free: 9.078 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.991e-05/0.3169, allocations: 8 kB / 446.3 MB, free: 9.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.005234/0.3221, allocations: 4.569 MB / 450.8 MB, free: 4.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.3221, allocations: 16 kB / 450.8 MB, free: 4.414 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.481e-05/0.3222, allocations: 32 kB / 450.9 MB, free: 4.383 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009054/0.3231, allocations: 0.5221 MB / 451.4 MB, free: 3.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.3245, allocations: 0.7487 MB / 452.1 MB, free: 3.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006066/0.3306, allocations: 9.704 MB / 461.8 MB, free: 8.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001733/0.3323, allocations: 183.8 kB / 462 MB, free: 8.641 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001666/0.3325, allocations: 144 kB / 462.2 MB, free: 8.5 MB / 426.7 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.002282/0.3348, allocations: 1.578 MB / 463.7 MB, free: 6.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005485/0.3353, allocations: 361.7 kB / 464.1 MB, free: 6.555 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004657/0.34, allocations: 3.8 MB / 467.9 MB, free: 2.711 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.34, allocations: 24 kB / 467.9 MB, free: 2.688 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.471e-05/0.34, allocations: 11.98 kB / 467.9 MB, free: 2.676 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.34, allocations: 11.91 kB / 467.9 MB, free: 2.664 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1414/0.4814, allocations: 8.187 MB / 476.1 MB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.4815, allocations: 4.531 kB / 476.1 MB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.4825, allocations: 412.4 kB / 476.5 MB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001294/0.4838, allocations: 0.7275 MB / 477.3 MB, free: 132 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001984/0.484, allocations: 66.06 kB / 477.3 MB, free: 132 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009437/0.4934, allocations: 15.77 MB / 493.1 MB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.4934, allocations: 5.031 kB / 493.1 MB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007197/0.5006, allocations: 5.605 MB / 498.7 MB, free: 116.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001625/0.5023, allocations: 0.6371 MB / 499.4 MB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005448/0.5028, allocations: 61.05 kB / 499.4 MB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000971/0.5038, allocations: 141 kB / 499.5 MB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003589/0.5041, allocations: 193.4 kB / 499.7 MB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/0.5042, allocations: 73.69 kB / 499.8 MB, free: 116.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002568/0.5068, allocations: 2.127 MB / 0.4902 GB, free: 115.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5068, allocations: 0 / 0.4902 GB, free: 115.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002765/0.5096, allocations: 0.9903 MB / 0.4911 GB, free: 115.6 MB / 426.7 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.005644/0.5152, allocations: 6.302 MB / 0.4973 GB, free: 112.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0036/0.5188, allocations: 3.848 MB / 0.5011 GB, free: 110.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.5188, allocations: 0 / 0.5011 GB, free: 110.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002052/0.5209, allocations: 2.645 MB / 0.5036 GB, free: 108 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002755/0.5236, allocations: 0.972 MB / 0.5046 GB, free: 107.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04371/0.5673, allocations: 35.29 MB / 0.539 GB, free: 71.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002137/0.5695, allocations: 2.913 MB / 0.5419 GB, free: 68.62 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001805/0.5713, allocations: 0.8034 MB / 0.5427 GB, free: 67.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001738/0.573, allocations: 2.105 MB / 0.5447 GB, free: 65.71 MB / 426.7 MB Notification: Performance of SimCode: time 1.403e-06/0.573, allocations: 4 kB / 0.5447 GB, free: 65.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.235/0.808, allocations: 93.13 MB / 0.6357 GB, free: 131.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/11.22, allocations: 1.406 kB / 0.6357 GB, free: 131.7 MB / 442.7 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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: 16.172010581940413]