Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001052/0.001052, allocations: 199.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.16/1.16, allocations: 226.5 MB / 244.7 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007096/0.0007096, allocations: 95.91 kB / 296.7 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002514/0.0002516, allocations: 15.92 kB / 356.9 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1778/0.1781, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.01401/0.1922, allocations: 19.77 MB / 427.9 MB, free: 7.848 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009973/0.2022, allocations: 6.211 MB / 434.1 MB, free: 1.637 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002795/0.205, allocations: 131.4 kB / 434.3 MB, free: 1.508 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002859/0.2079, allocations: 1.11 MB / 435.4 MB, free: 400 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005142/0.2131, allocations: 1.712 MB / 437.1 MB, free: 14.67 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002633/0.2157, allocations: 0.8851 MB / 438 MB, free: 13.79 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007737/0.2235, allocations: 6.703 MB / 444.7 MB, free: 7.055 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005845/0.2293, allocations: 4.648 MB / 449.3 MB, free: 2.328 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003381/0.2327, allocations: 2.124 MB / 451.4 MB, free: 200 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004118/0.2369, allocations: 2.801 MB / 454.2 MB, free: 13.38 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.2379, allocations: 336 kB / 454.6 MB, free: 13.05 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002149/0.2401, allocations: 0.6441 MB / 455.2 MB, free: 12.41 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001274/0.2414, allocations: 1.437 MB / 456.6 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003392/0.2448, allocations: 2.797 MB / 459.4 MB, free: 8.148 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007779/0.2525, allocations: 8.812 MB / 468.3 MB, free: 15.31 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2526, allocations: 0 / 468.3 MB, free: 15.31 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2526, allocations: 0 / 468.3 MB, free: 15.31 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003462/0.2529, allocations: 4 kB / 468.3 MB, free: 15.31 MB / 346.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.01328/0.2662, allocations: 5.835 MB / 474.1 MB, free: 9.395 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.2663, allocations: 12.03 kB / 474.1 MB, free: 9.383 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001314/0.2676, allocations: 0.7328 MB / 474.8 MB, free: 8.641 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004402/0.272, allocations: 1.075 MB / 475.9 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00585/0.2779, allocations: 3.621 MB / 479.5 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003072/0.2782, allocations: 426.9 kB / 480 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000729/0.2789, allocations: 0.5193 MB / 480.5 MB, free: 2.926 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01144/0.2904, allocations: 7.032 MB / 487.5 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001139/0.2905, allocations: 19.83 kB / 487.5 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004515/0.291, allocations: 212 kB / 487.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002156/0.2912, allocations: 262.6 kB / 488 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0099/0.3011, allocations: 5.937 MB / 493.9 MB, free: 5.391 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2028/0.5039, allocations: 22.73 MB / 0.5045 GB, free: 55.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006417/0.5104, allocations: 8.552 MB / 0.5129 GB, free: 49.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003189/0.5136, allocations: 2.302 MB / 0.5151 GB, free: 49.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009423/0.523, allocations: 6.483 MB / 0.5215 GB, free: 48.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.5231, allocations: 55.66 kB / 0.5215 GB, free: 48.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=220): time 3.787e-06/0.5231, allocations: 0 / 0.5215 GB, free: 48.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=240): time 0.01883/0.5419, allocations: 11.23 MB / 0.5325 GB, free: 46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.542, allocations: 83.53 kB / 0.5326 GB, free: 45.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003662/0.5457, allocations: 3.15 MB / 0.5356 GB, free: 45.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001514/0.5458, allocations: 65.39 kB / 0.5357 GB, free: 45.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/0.5469, allocations: 2.5 MB / 0.5381 GB, free: 44.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004229/0.5473, allocations: 0.8306 MB / 0.539 GB, free: 43.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.5475, allocations: 61.34 kB / 0.539 GB, free: 43.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.5476, allocations: 432.5 kB / 0.5394 GB, free: 43.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001716/0.5493, allocations: 1.339 MB / 0.5407 GB, free: 42.81 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001986/0.5513, allocations: 2.339 MB / 0.543 GB, free: 40.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00398/0.5553, allocations: 3.931 MB / 0.5469 GB, free: 36.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/0.5553, allocations: 8 kB / 0.5469 GB, free: 36.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006023/0.5614, allocations: 4.733 MB / 0.5515 GB, free: 32.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.5614, allocations: 20 kB / 0.5515 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.544e-05/0.5614, allocations: 35.75 kB / 0.5515 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/0.5625, allocations: 0.5443 MB / 0.5521 GB, free: 31.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002338/0.5648, allocations: 0.744 MB / 0.5528 GB, free: 30.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00612/0.571, allocations: 9.565 MB / 0.5621 GB, free: 20.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002439/0.5734, allocations: 191.8 kB / 0.5623 GB, free: 20.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/0.5736, allocations: 147 kB / 0.5625 GB, free: 20.3 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 (377): * Single equations (assignments): 370 * 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%) 6,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00222/0.5759, allocations: 1.575 MB / 0.564 GB, free: 18.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004762/0.5763, allocations: 347.7 kB / 0.5643 GB, free: 18.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005605/0.582, allocations: 4.096 MB / 0.5683 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.582, allocations: 24 kB / 0.5684 GB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/0.582, allocations: 8 kB / 0.5684 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.86e-05/0.582, allocations: 12.08 kB / 0.5684 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/0.5937, allocations: 9.039 MB / 0.5772 GB, free: 5.098 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.5937, allocations: 7.938 kB / 0.5772 GB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001556/0.5953, allocations: 409 kB / 0.5776 GB, free: 4.707 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001648/0.5969, allocations: 0.7531 MB / 0.5783 GB, free: 3.938 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000149/0.5971, allocations: 67.97 kB / 0.5784 GB, free: 3.871 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01294/0.6101, allocations: 15.5 MB / 0.5935 GB, free: 3.398 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.6101, allocations: 4.094 kB / 0.5935 GB, free: 3.395 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008885/0.619, allocations: 5.898 MB / 0.5993 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001533/0.6205, allocations: 0.7037 MB / 0.6 GB, free: 12.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000464/0.621, allocations: 59.98 kB / 0.6 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/0.6226, allocations: 147.9 kB / 0.6002 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004814/0.6231, allocations: 179.5 kB / 0.6004 GB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/0.6232, allocations: 71.98 kB / 0.6004 GB, free: 12.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003021/0.6262, allocations: 2.115 MB / 0.6025 GB, free: 10.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6262, allocations: 0 / 0.6025 GB, free: 10.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003175/0.6294, allocations: 1.003 MB / 0.6035 GB, free: 9.102 MB / 410.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 (198): * Single equations (assignments): 190 * 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%) 6,(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.008967/0.6384, allocations: 6.602 MB / 0.6099 GB, free: 2.391 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00602/0.6444, allocations: 4.158 MB / 0.614 GB, free: 14.24 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.6445, allocations: 4 kB / 0.614 GB, free: 14.24 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003912/0.6484, allocations: 2.774 MB / 0.6167 GB, free: 11.41 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005756/0.6542, allocations: 0.9157 MB / 0.6176 GB, free: 10.52 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05341/0.7076, allocations: 31.5 MB / 0.6483 GB, free: 8.988 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00295/0.7106, allocations: 3.339 MB / 0.6516 GB, free: 5.621 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002584/0.7132, allocations: 2.134 MB / 0.6537 GB, free: 3.488 MB / 458.7 MB Notification: Performance of SimCode: time 6.21e-07/0.7132, allocations: 0 / 0.6537 GB, free: 3.488 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.317/10.03, allocations: 281.7 MB / 0.9288 GB, free: 91.34 MB / 474.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches