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.001822/0.001822, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.002645/0.002645, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 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 1.511/1.511, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002088, allocations: 52.34 kB / 347.2 MB, free: 9.863 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2697, allocations: 49.16 MB / 396.4 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02211/0.2918, allocations: 18.73 MB / 415.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01589/0.3077, allocations: 6.196 MB / 421.3 MB, free: 7.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005055/0.3128, allocations: 151.8 kB / 421.4 MB, free: 7.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00554/0.3183, allocations: 1.48 MB / 422.9 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009281/0.3276, allocations: 2.08 MB / 425 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005018/0.3326, allocations: 1.31 MB / 426.3 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01105/0.3437, allocations: 6.545 MB / 432.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007095/0.3508, allocations: 2.955 MB / 435.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006109/0.3569, allocations: 3.061 MB / 438.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00695/0.3638, allocations: 3.393 MB / 442.3 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003152/0.367, allocations: 0.8164 MB / 443.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004421/0.3714, allocations: 1.078 MB / 444.2 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003652/0.375, allocations: 2.037 MB / 446.2 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009146/0.3842, allocations: 2.82 MB / 449 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02142/0.4056, allocations: 10.86 MB / 459.9 MB, free: 3.469 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4056, allocations: 0 / 459.9 MB, free: 3.469 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4056, allocations: 0 / 459.9 MB, free: 3.469 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003878/0.406, allocations: 3.938 kB / 459.9 MB, free: 3.465 MB / 366.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.01977/0.4258, allocations: 6.988 MB / 466.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.4258, allocations: 15.98 kB / 466.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00181/0.4276, allocations: 0.7329 MB / 467.6 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005163/0.4328, allocations: 1.098 MB / 468.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008674/0.4415, allocations: 3.415 MB / 472.1 MB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004026/0.4419, allocations: 410.9 kB / 472.5 MB, free: 6.664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001502/0.4434, allocations: 0.5233 MB / 473.1 MB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01658/0.4599, allocations: 7.281 MB / 480.3 MB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001744/0.4601, allocations: 11.94 kB / 480.4 MB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007302/0.4608, allocations: 216 kB / 480.6 MB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002936/0.4611, allocations: 266.6 kB / 480.8 MB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01377/0.4749, allocations: 5.917 MB / 486.7 MB, free: 8.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04279/0.5177, allocations: 19.94 MB / 0.4948 GB, free: 3.84 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006751/0.5245, allocations: 3.691 MB / 0.4984 GB, free: 336 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00352/0.528, allocations: 1.991 MB / 0.5004 GB, free: 14.33 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01152/0.5395, allocations: 5.2 MB / 0.5054 GB, free: 9.105 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.439e-05/0.5396, allocations: 56.56 kB / 0.5055 GB, free: 9.039 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 5.24e-06/0.5396, allocations: 3.938 kB / 0.5055 GB, free: 9.035 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02531/0.5649, allocations: 10.22 MB / 0.5155 GB, free: 14.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.5649, allocations: 73.41 kB / 0.5155 GB, free: 14.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005139/0.5701, allocations: 3.21 MB / 0.5187 GB, free: 11.51 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003686/0.5704, allocations: 61.7 kB / 0.5187 GB, free: 11.44 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002112/0.5726, allocations: 2.572 MB / 0.5212 GB, free: 8.852 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009924/0.5736, allocations: 0.8676 MB / 0.5221 GB, free: 7.977 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009549/0.5745, allocations: 0.5617 MB / 0.5226 GB, free: 7.406 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.5746, allocations: 301.1 kB / 0.5229 GB, free: 7.109 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002315/0.577, allocations: 1.341 MB / 0.5242 GB, free: 5.766 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003209/0.5802, allocations: 2.36 MB / 0.5265 GB, free: 2.953 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005785/0.5859, allocations: 3.924 MB / 0.5304 GB, free: 14.55 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.021e-05/0.586, allocations: 8 kB / 0.5304 GB, free: 14.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008413/0.5944, allocations: 4.56 MB / 0.5348 GB, free: 9.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.86e-05/0.5944, allocations: 19.94 kB / 0.5349 GB, free: 9.891 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.711e-05/0.5945, allocations: 32 kB / 0.5349 GB, free: 9.859 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.5957, allocations: 0.5257 MB / 0.5354 GB, free: 9.312 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002871/0.5986, allocations: 0.7526 MB / 0.5361 GB, free: 8.559 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/0.6088, allocations: 9.709 MB / 0.5456 GB, free: 14.28 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003043/0.6118, allocations: 187.8 kB / 0.5458 GB, free: 14.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000437/0.6123, allocations: 143.9 kB / 0.5459 GB, free: 13.96 MB / 478.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.003186/0.6155, allocations: 1.574 MB / 0.5475 GB, free: 12.37 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009112/0.6164, allocations: 365.7 kB / 0.5478 GB, free: 12.01 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007264/0.6236, allocations: 3.8 MB / 0.5515 GB, free: 8.164 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.249e-05/0.6237, allocations: 24 kB / 0.5516 GB, free: 8.141 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.651e-05/0.6237, allocations: 8 kB / 0.5516 GB, free: 8.133 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.582e-05/0.6237, allocations: 15.95 kB / 0.5516 GB, free: 8.117 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.189/0.8127, allocations: 8.177 MB / 0.5596 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.727e-05/0.8127, allocations: 4.312 kB / 0.5596 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002221/0.815, allocations: 413.2 kB / 0.56 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002016/0.817, allocations: 0.7334 MB / 0.5607 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003076/0.8173, allocations: 66.84 kB / 0.5607 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01223/0.8295, allocations: 15.79 MB / 0.5762 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/0.8295, allocations: 9.938 kB / 0.5762 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009121/0.8386, allocations: 5.615 MB / 0.5817 GB, free: 125.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001994/0.8406, allocations: 0.6375 MB / 0.5823 GB, free: 125.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000653/0.8413, allocations: 59.12 kB / 0.5823 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/0.843, allocations: 141.3 kB / 0.5825 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004167/0.8434, allocations: 199 kB / 0.5827 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001533/0.8435, allocations: 74.19 kB / 0.5827 GB, free: 125.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003404/0.847, allocations: 2.123 MB / 0.5848 GB, free: 124.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.847, allocations: 0 / 0.5848 GB, free: 124.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004562/0.8515, allocations: 0.9915 MB / 0.5858 GB, free: 124.4 MB / 478.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.009272/0.8608, allocations: 6.313 MB / 0.5919 GB, free: 121.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005343/0.8661, allocations: 3.851 MB / 0.5957 GB, free: 119.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/0.8661, allocations: 0 / 0.5957 GB, free: 119.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003331/0.8695, allocations: 2.642 MB / 0.5983 GB, free: 118.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004287/0.8738, allocations: 0.9621 MB / 0.5992 GB, free: 117.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04874/0.9225, allocations: 35.37 MB / 0.6338 GB, free: 83.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002607/0.9251, allocations: 2.905 MB / 0.6366 GB, free: 80.56 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002416/0.9275, allocations: 0.8034 MB / 0.6374 GB, free: 79.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002167/0.9297, allocations: 2.112 MB / 0.6394 GB, free: 77.64 MB / 478.1 MB Notification: Performance of SimCode: time 9.02e-07/0.9297, allocations: 0 / 0.6394 GB, free: 77.64 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1606/1.09, allocations: 93.34 MB / 0.7306 GB, free: 112 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.54/17.63, allocations: 13.98 kB / 0.7306 GB, free: 100 kB / 494.1 MB " [Timeout remaining time 642] (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/jenkins1/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/jenkins1/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 657] Reference file matches [Calling sys.exit(0), Time elapsed: 25.99362899782136]