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.00874/0.00874, allocations: 110.1 kB / 21.96 MB, free: 5.25 MB / 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.001351/0.001351, allocations: 202.5 kB / 25.27 MB, free: 3.238 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.428/1.428, allocations: 207.6 MB / 236 MB, free: 9.984 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="cs",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="cs",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.001676/0.001676, allocations: 51.92 kB / 348 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2578, allocations: 49.16 MB / 397.2 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02125/0.2791, allocations: 21.83 MB / 419 MB, free: 9.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01517/0.2942, allocations: 6.472 MB / 425.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005317/0.2995, allocations: 157.1 kB / 425.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00561/0.3052, allocations: 1.556 MB / 427.2 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008358/0.3135, allocations: 2.109 MB / 429.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003894/0.3174, allocations: 1.347 MB / 430.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01032/0.3277, allocations: 6.551 MB / 437.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00501/0.3327, allocations: 3.088 MB / 440.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005116/0.3378, allocations: 3.061 MB / 443.3 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006121/0.344, allocations: 3.627 MB / 446.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001789/0.3458, allocations: 0.8203 MB / 447.8 MB, free: 496 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003009/0.3488, allocations: 1.117 MB / 448.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001976/0.3507, allocations: 2.045 MB / 450.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005181/0.3559, allocations: 3.532 MB / 454.5 MB, free: 9.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01368/0.3696, allocations: 10.82 MB / 465.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3696, allocations: 4 kB / 465.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3696, allocations: 0 / 465.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002835/0.3699, allocations: 0 / 465.3 MB, free: 14.91 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01955/0.3894, allocations: 7.004 MB / 472.3 MB, free: 7.836 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.3895, allocations: 11.98 kB / 472.3 MB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000148/0.3896, allocations: 143 kB / 472.4 MB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001418/0.3911, allocations: 0.7329 MB / 473.2 MB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004876/0.3959, allocations: 1.09 MB / 474.3 MB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00839/0.4043, allocations: 3.442 MB / 477.7 MB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000349/0.4047, allocations: 410.7 kB / 478.1 MB, free: 1.938 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001241/0.4059, allocations: 0.5194 MB / 478.6 MB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01404/0.4199, allocations: 7.052 MB / 485.7 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001381/0.4201, allocations: 15.88 kB / 485.7 MB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005178/0.4206, allocations: 224 kB / 485.9 MB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002601/0.4209, allocations: 262.5 kB / 486.2 MB, free: 9.801 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01138/0.4322, allocations: 5.933 MB / 492.1 MB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0386/0.4709, allocations: 21.79 MB / 0.5018 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006513/0.4774, allocations: 3.717 MB / 0.5055 GB, free: 9.984 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003168/0.4805, allocations: 1.98 MB / 0.5074 GB, free: 8 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01102/0.4916, allocations: 5.757 MB / 0.513 GB, free: 2.215 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.598e-05/0.4916, allocations: 60.56 kB / 0.5131 GB, free: 2.145 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 4.168e-06/0.4916, allocations: 0 / 0.5131 GB, free: 2.145 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02188/0.5135, allocations: 10.22 MB / 0.5231 GB, free: 7.918 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.5135, allocations: 77.41 kB / 0.5231 GB, free: 7.832 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004627/0.5182, allocations: 3.152 MB / 0.5262 GB, free: 4.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002563/0.5184, allocations: 65.7 kB / 0.5263 GB, free: 4.609 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001912/0.5203, allocations: 2.572 MB / 0.5288 GB, free: 2.016 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008198/0.5212, allocations: 0.8676 MB / 0.5296 GB, free: 1.141 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008451/0.522, allocations: 0.5656 MB / 0.5302 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.5221, allocations: 301.1 kB / 0.5305 GB, free: 276 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002192/0.5243, allocations: 1.33 MB / 0.5318 GB, free: 14.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002928/0.5272, allocations: 2.343 MB / 0.5341 GB, free: 12.14 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005462/0.5327, allocations: 3.92 MB / 0.5379 GB, free: 7.75 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.97e-05/0.5327, allocations: 12 kB / 0.5379 GB, free: 7.738 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008058/0.5408, allocations: 4.557 MB / 0.5424 GB, free: 3.109 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.5408, allocations: 24.03 kB / 0.5424 GB, free: 3.086 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.463e-05/0.5409, allocations: 32 kB / 0.5424 GB, free: 3.055 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.5421, allocations: 0.5288 MB / 0.5429 GB, free: 2.504 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002673/0.5447, allocations: 0.7488 MB / 0.5437 GB, free: 1.754 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009538/0.5543, allocations: 9.768 MB / 0.5532 GB, free: 7.422 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002911/0.5572, allocations: 187.7 kB / 0.5534 GB, free: 7.238 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003112/0.5575, allocations: 144 kB / 0.5535 GB, free: 7.098 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.002764/0.5603, allocations: 1.571 MB / 0.555 GB, free: 5.516 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007871/0.5611, allocations: 357.7 kB / 0.5554 GB, free: 5.164 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006797/0.5679, allocations: 3.812 MB / 0.5591 GB, free: 1.305 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.117e-05/0.5679, allocations: 27.94 kB / 0.5591 GB, free: 1.277 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/0.5679, allocations: 8 kB / 0.5591 GB, free: 1.27 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.25e-05/0.5679, allocations: 11.95 kB / 0.5592 GB, free: 1.258 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1882/0.7561, allocations: 8.688 MB / 0.5676 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/0.7562, allocations: 6.406 kB / 0.5676 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001641/0.7578, allocations: 409.4 kB / 0.568 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001798/0.7596, allocations: 0.7381 MB / 0.5688 GB, free: 140 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001883/0.7598, allocations: 67.47 kB / 0.5688 GB, free: 140 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01143/0.7712, allocations: 15.91 MB / 0.5844 GB, free: 127 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/0.7712, allocations: 8.969 kB / 0.5844 GB, free: 127 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008545/0.7798, allocations: 5.602 MB / 0.5898 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001696/0.7815, allocations: 0.6493 MB / 0.5905 GB, free: 124.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004499/0.7819, allocations: 59.36 kB / 0.5905 GB, free: 124.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001497/0.7834, allocations: 138 kB / 0.5907 GB, free: 124.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003727/0.7838, allocations: 192.2 kB / 0.5908 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/0.7839, allocations: 75.45 kB / 0.5909 GB, free: 124.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002622/0.7865, allocations: 2.125 MB / 0.593 GB, free: 123.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7865, allocations: 3.469 kB / 0.593 GB, free: 123.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002998/0.7895, allocations: 0.9904 MB / 0.594 GB, free: 123.5 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.007197/0.7967, allocations: 6.311 MB / 0.6001 GB, free: 120.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004893/0.8016, allocations: 3.85 MB / 0.6039 GB, free: 117.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/0.8016, allocations: 0 / 0.6039 GB, free: 117.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003123/0.8048, allocations: 2.645 MB / 0.6065 GB, free: 114.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003929/0.8087, allocations: 0.9547 MB / 0.6074 GB, free: 113.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04336/0.852, allocations: 35.41 MB / 0.642 GB, free: 76.94 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002459/0.8545, allocations: 3.407 MB / 0.6453 GB, free: 73.49 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002339/0.8568, allocations: 0.8034 MB / 0.6461 GB, free: 72.69 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002164/0.859, allocations: 2.104 MB / 0.6481 GB, free: 70.58 MB / 478.1 MB Notification: Performance of SimCode: time 2.314e-06/0.859, allocations: 0 / 0.6481 GB, free: 70.58 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1422/1.001, allocations: 91.47 MB / 0.7375 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.46/18.46, allocations: 12 kB / 0.7375 GB, free: 10.94 MB / 0.4981 GB " [Timeout remaining time 641] (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 655] Reference file matches [Calling sys.exit(0), Time elapsed: 30.140802894951776]