Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_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_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/ModelicaServices trunk/package.mo): time 0.001368/0.001368, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001555/0.001555, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 247 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 71.88 kB / 358.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2823, allocations: 50.53 MB / 408.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02637/0.3087, allocations: 22.39 MB / 431.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01598/0.3247, allocations: 6.662 MB / 437.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004837/0.3296, allocations: 143.4 kB / 438 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005112/0.3348, allocations: 1.494 MB / 439.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007761/0.3426, allocations: 2.042 MB / 441.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004405/0.347, allocations: 1.335 MB / 442.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01076/0.3578, allocations: 6.575 MB / 449.5 MB, free: 8.645 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008497/0.3663, allocations: 5.598 MB / 455.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006018/0.3724, allocations: 3.002 MB / 458.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007136/0.3796, allocations: 3.682 MB / 461.8 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002402/0.382, allocations: 0.8164 MB / 462.6 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004027/0.3861, allocations: 1.117 MB / 463.7 MB, free: 10.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002918/0.389, allocations: 2.034 MB / 465.7 MB, free: 8.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006905/0.396, allocations: 3.543 MB / 469.3 MB, free: 4.727 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01456/0.4105, allocations: 10.87 MB / 480.1 MB, free: 9.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.4106, allocations: 3.938 kB / 480.1 MB, free: 9.816 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4106, allocations: 0 / 480.1 MB, free: 9.816 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003298/0.4109, allocations: 0 / 480.1 MB, free: 9.816 MB / 398.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.02112/0.4321, allocations: 7.118 MB / 487.3 MB, free: 2.609 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.4321, allocations: 12.03 kB / 487.3 MB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002258/0.4344, allocations: 0.7368 MB / 488 MB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006009/0.4404, allocations: 1.074 MB / 489.1 MB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00981/0.4503, allocations: 3.795 MB / 492.9 MB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006063/0.4509, allocations: 410.9 kB / 493.3 MB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002193/0.4531, allocations: 0.5234 MB / 493.8 MB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02088/0.474, allocations: 7.06 MB / 0.4891 GB, free: 4.844 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002963/0.4744, allocations: 15.88 kB / 0.4891 GB, free: 4.828 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001665/0.4761, allocations: 220 kB / 0.4894 GB, free: 4.613 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003381/0.4764, allocations: 258.6 kB / 0.4896 GB, free: 4.359 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01637/0.4928, allocations: 5.952 MB / 0.4954 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04814/0.541, allocations: 22.41 MB / 0.5173 GB, free: 7.395 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01087/0.5519, allocations: 8.554 MB / 0.5256 GB, free: 13.9 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004708/0.5567, allocations: 2.269 MB / 0.5279 GB, free: 11.62 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01381/0.5705, allocations: 6.46 MB / 0.5342 GB, free: 4.965 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.03e-05/0.5706, allocations: 64.5 kB / 0.5342 GB, free: 4.891 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 4.96e-06/0.5706, allocations: 3.938 kB / 0.5342 GB, free: 4.887 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.2657/0.8363, allocations: 11.18 MB / 0.5452 GB, free: 118.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.8364, allocations: 80.94 kB / 0.5452 GB, free: 118.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004557/0.841, allocations: 3.174 MB / 0.5483 GB, free: 117.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003944/0.8414, allocations: 65.45 kB / 0.5484 GB, free: 117.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001409/0.8428, allocations: 2.577 MB / 0.5509 GB, free: 115.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000766/0.8436, allocations: 0.8704 MB / 0.5518 GB, free: 115.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007701/0.8444, allocations: 0.5596 MB / 0.5523 GB, free: 114.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.04e-05/0.8445, allocations: 306.1 kB / 0.5526 GB, free: 114.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001956/0.8464, allocations: 1.333 MB / 0.5539 GB, free: 114 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002322/0.8488, allocations: 2.35 MB / 0.5562 GB, free: 112.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004271/0.853, allocations: 3.913 MB / 0.56 GB, free: 109.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.762e-05/0.8531, allocations: 11.44 kB / 0.56 GB, free: 109.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006692/0.8598, allocations: 4.748 MB / 0.5647 GB, free: 107.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/0.8598, allocations: 24.09 kB / 0.5647 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.643e-05/0.8599, allocations: 32 kB / 0.5647 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.8609, allocations: 0.5428 MB / 0.5652 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002362/0.8633, allocations: 0.7452 MB / 0.566 GB, free: 105.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006663/0.87, allocations: 10.46 MB / 0.5762 GB, free: 95.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002955/0.873, allocations: 192.3 kB / 0.5764 GB, free: 94.86 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003342/0.8733, allocations: 140 kB / 0.5765 GB, free: 94.72 MB / 462.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 (377): * Single equations (assignments): 370 * 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,6,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.002718/0.8761, allocations: 1.573 MB / 0.578 GB, free: 93.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008696/0.8769, allocations: 365.7 kB / 0.5784 GB, free: 92.79 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00583/0.8828, allocations: 4.078 MB / 0.5824 GB, free: 88.61 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-05/0.8828, allocations: 24 kB / 0.5824 GB, free: 88.59 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.526e-05/0.8828, allocations: 11.17 kB / 0.5824 GB, free: 88.58 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.088e-05/0.8829, allocations: 11.95 kB / 0.5824 GB, free: 88.57 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01522/0.8981, allocations: 8.997 MB / 0.5912 GB, free: 79.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-05/0.8981, allocations: 8.594 kB / 0.5912 GB, free: 79.42 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001642/0.8998, allocations: 407.4 kB / 0.5916 GB, free: 79.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001729/0.9015, allocations: 0.7595 MB / 0.5923 GB, free: 78.24 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002268/0.9018, allocations: 67.97 kB / 0.5924 GB, free: 78.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/0.9128, allocations: 16.9 MB / 0.6089 GB, free: 60.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.9128, allocations: 4 kB / 0.6089 GB, free: 60.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0079/0.9208, allocations: 5.896 MB / 0.6147 GB, free: 54.13 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001536/0.9223, allocations: 0.7172 MB / 0.6154 GB, free: 53.39 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006692/0.923, allocations: 56 kB / 0.6154 GB, free: 53.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001831/0.9248, allocations: 135.9 kB / 0.6156 GB, free: 53.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004363/0.9253, allocations: 181.6 kB / 0.6157 GB, free: 53.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001513/0.9255, allocations: 76.09 kB / 0.6158 GB, free: 52.95 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003199/0.9287, allocations: 2.139 MB / 0.6179 GB, free: 50.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9287, allocations: 3.938 kB / 0.6179 GB, free: 50.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003998/0.9327, allocations: 1 MB / 0.6189 GB, free: 49.82 MB / 462.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 (198): * Single equations (assignments): 190 * 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,6,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.00893/0.9416, allocations: 6.609 MB / 0.6253 GB, free: 43.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006455/0.9481, allocations: 4.163 MB / 0.6294 GB, free: 38.79 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/0.9482, allocations: 4.312 kB / 0.6294 GB, free: 38.79 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003985/0.9521, allocations: 2.776 MB / 0.6321 GB, free: 35.91 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006072/0.9582, allocations: 0.9711 MB / 0.6331 GB, free: 34.96 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06401/1.022, allocations: 35.71 MB / 0.6679 GB, free: 13.83 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006052/1.028, allocations: 3.408 MB / 0.6713 GB, free: 10.39 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003652/1.032, allocations: 0.8113 MB / 0.672 GB, free: 9.574 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00434/1.036, allocations: 2.116 MB / 0.6741 GB, free: 7.457 MB / 478.1 MB Notification: Performance of SimCode: time 8.92e-07/1.036, allocations: 0 / 0.6741 GB, free: 7.457 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4672/1.504, allocations: 88.42 MB / 0.7605 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.17/19.67, allocations: 6.891 kB / 0.7605 GB, free: 181.2 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches