Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008531/0.0008531, allocations: 175 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.201/1.201, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000692/0.0006923, allocations: 89.05 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002775/0.0002776, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1868, allocations: 47.57 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.01418/0.201, allocations: 19.17 MB / 394.4 MB, free: 29.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009454/0.2105, allocations: 6.059 MB / 400.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002649/0.2132, allocations: 111.5 kB / 400.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002443/0.2156, allocations: 1.095 MB / 401.6 MB, free: 22.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004056/0.2197, allocations: 1.717 MB / 403.3 MB, free: 20.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001893/0.2216, allocations: 0.8775 MB / 404.2 MB, free: 19.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005336/0.227, allocations: 6.638 MB / 410.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003943/0.2309, allocations: 4.565 MB / 415.4 MB, free: 8.285 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002471/0.2334, allocations: 2.12 MB / 417.5 MB, free: 6.156 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00265/0.236, allocations: 2.809 MB / 420.4 MB, free: 3.336 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005467/0.2366, allocations: 340 kB / 420.7 MB, free: 3.004 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001445/0.2381, allocations: 0.6245 MB / 421.3 MB, free: 2.379 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000905/0.239, allocations: 1.429 MB / 422.7 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002624/0.2416, allocations: 2.801 MB / 425.5 MB, free: 14.12 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007288/0.2489, allocations: 8.761 MB / 434.3 MB, free: 5.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2489, allocations: 0 / 434.3 MB, free: 5.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2489, allocations: 0 / 434.3 MB, free: 5.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002125/0.2492, allocations: 0 / 434.3 MB, free: 5.34 MB / 314.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.01215/0.2613, allocations: 5.815 MB / 440.1 MB, free: 15.45 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.2614, allocations: 12.03 kB / 440.1 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001304/0.2627, allocations: 0.7328 MB / 440.9 MB, free: 14.69 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004262/0.267, allocations: 1.067 MB / 441.9 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005622/0.2726, allocations: 3.445 MB / 445.4 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003073/0.2729, allocations: 426.8 kB / 445.8 MB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007412/0.2737, allocations: 0.5232 MB / 446.3 MB, free: 9.152 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01121/0.2849, allocations: 7.024 MB / 453.3 MB, free: 2.055 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001144/0.285, allocations: 11.91 kB / 453.4 MB, free: 2.043 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004492/0.2855, allocations: 216 kB / 453.6 MB, free: 1.832 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002156/0.2857, allocations: 262.6 kB / 453.8 MB, free: 1.574 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009625/0.2953, allocations: 5.933 MB / 459.8 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03127/0.3266, allocations: 22.54 MB / 482.3 MB, free: 4.523 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007272/0.3339, allocations: 8.28 MB / 490.6 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003505/0.3375, allocations: 2.195 MB / 492.8 MB, free: 9.152 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01197/0.3495, allocations: 6.211 MB / 499 MB, free: 2.805 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.253e-05/0.3496, allocations: 56.56 kB / 499 MB, free: 2.742 MB / 378.7 MB Notification: Performance of pre-optimization done (n=220): time 5.971e-06/0.3496, allocations: 4 kB / 499 MB, free: 2.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=240): time 0.1841/0.5337, allocations: 11.3 MB / 0.4984 GB, free: 100.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.5338, allocations: 79.97 kB / 0.4984 GB, free: 100.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004011/0.5378, allocations: 3.124 MB / 0.5015 GB, free: 99.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001417/0.5379, allocations: 66.98 kB / 0.5016 GB, free: 99.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001207/0.5391, allocations: 2.5 MB / 0.504 GB, free: 97.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000432/0.5396, allocations: 0.8321 MB / 0.5048 GB, free: 96.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.5397, allocations: 63.78 kB / 0.5049 GB, free: 96.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.5399, allocations: 438.3 kB / 0.5053 GB, free: 96.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001802/0.5417, allocations: 1.337 MB / 0.5066 GB, free: 95.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002003/0.5437, allocations: 2.339 MB / 0.5089 GB, free: 93.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003908/0.5476, allocations: 3.931 MB / 0.5127 GB, free: 91.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.228e-05/0.5476, allocations: 11.62 kB / 0.5127 GB, free: 91.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.005994/0.5536, allocations: 4.708 MB / 0.5173 GB, free: 87.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.5537, allocations: 20.06 kB / 0.5174 GB, free: 87.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-05/0.5537, allocations: 36 kB / 0.5174 GB, free: 87.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009839/0.5547, allocations: 0.5211 MB / 0.5179 GB, free: 87.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002313/0.557, allocations: 0.7527 MB / 0.5186 GB, free: 86.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006158/0.5632, allocations: 9.417 MB / 0.5278 GB, free: 76.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003067/0.5663, allocations: 199.6 kB / 0.528 GB, free: 76.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003069/0.5666, allocations: 140 kB / 0.5282 GB, free: 75.93 MB / 378.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 (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002883/0.5695, allocations: 1.569 MB / 0.5297 GB, free: 74.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000662/0.5702, allocations: 343.8 kB / 0.53 GB, free: 74.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005488/0.5757, allocations: 4.079 MB / 0.534 GB, free: 69.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.5757, allocations: 24 kB / 0.534 GB, free: 69.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/0.5757, allocations: 8 kB / 0.534 GB, free: 69.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.82e-05/0.5757, allocations: 11.95 kB / 0.534 GB, free: 69.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01161/0.5873, allocations: 8.996 MB / 0.5428 GB, free: 60.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.5874, allocations: 4 kB / 0.5428 GB, free: 60.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/0.5889, allocations: 415.7 kB / 0.5432 GB, free: 60.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001624/0.5906, allocations: 0.7364 MB / 0.5439 GB, free: 59.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001445/0.5907, allocations: 59.97 kB / 0.544 GB, free: 59.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01017/0.6009, allocations: 15.32 MB / 0.559 GB, free: 43.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.601, allocations: 7.984 kB / 0.559 GB, free: 43.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007737/0.6087, allocations: 5.861 MB / 0.5647 GB, free: 37.03 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001737/0.6105, allocations: 0.7036 MB / 0.5654 GB, free: 36.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000464/0.6109, allocations: 63.98 kB / 0.5654 GB, free: 36.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/0.6125, allocations: 151.9 kB / 0.5656 GB, free: 36.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004787/0.613, allocations: 181.3 kB / 0.5658 GB, free: 35.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/0.6131, allocations: 67.98 kB / 0.5658 GB, free: 35.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002629/0.6157, allocations: 2.11 MB / 0.5679 GB, free: 33.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6157, allocations: 0 / 0.5679 GB, free: 33.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003021/0.6188, allocations: 0.9869 MB / 0.5688 GB, free: 32.77 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007599/0.6264, allocations: 6.573 MB / 0.5753 GB, free: 26.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005245/0.6317, allocations: 4.14 MB / 0.5793 GB, free: 21.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.6317, allocations: 8.062 kB / 0.5793 GB, free: 21.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00328/0.635, allocations: 2.755 MB / 0.582 GB, free: 18.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005722/0.6407, allocations: 0.9059 MB / 0.5829 GB, free: 18.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.049/0.6897, allocations: 31.34 MB / 0.6135 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002938/0.6927, allocations: 3.331 MB / 0.6167 GB, free: 13.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002685/0.6954, allocations: 2.124 MB / 0.6188 GB, free: 11.06 MB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.6954, allocations: 0 / 0.6188 GB, free: 11.06 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.567/10.26, allocations: 280.8 MB / 0.893 GB, free: 78.25 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches