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.001681/0.001681, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00212/0.00212, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 63.73 kB / 306.4 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09153/0.0927, allocations: 50.53 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.2306/0.3233, allocations: 22.08 MB / 379 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01241/0.3358, allocations: 6.592 MB / 385.6 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004639/0.3404, allocations: 136.5 kB / 385.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004354/0.3449, allocations: 1.288 MB / 387 MB, free: 5.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006737/0.3516, allocations: 1.839 MB / 388.8 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00332/0.355, allocations: 1.222 MB / 390 MB, free: 3.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008932/0.3639, allocations: 7.183 MB / 397.2 MB, free: 328 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007388/0.3713, allocations: 4.681 MB / 401.9 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004452/0.3758, allocations: 2.526 MB / 404.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005291/0.3811, allocations: 3.362 MB / 407.8 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001925/0.3831, allocations: 500 kB / 408.3 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003703/0.3868, allocations: 0.8159 MB / 409.1 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002587/0.3894, allocations: 1.686 MB / 410.8 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006025/0.3954, allocations: 3.188 MB / 414 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01085/0.4063, allocations: 10.49 MB / 424.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.4064, allocations: 0 / 424.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4064, allocations: 0 / 424.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002859/0.4067, allocations: 0 / 424.5 MB, free: 9.145 MB / 334.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.01791/0.4246, allocations: 6.95 MB / 431.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.4247, allocations: 12.03 kB / 431.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002002/0.4267, allocations: 0.729 MB / 432.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005482/0.4322, allocations: 1.075 MB / 433.2 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007355/0.4395, allocations: 3.629 MB / 436.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004432/0.44, allocations: 415.1 kB / 437.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001513/0.4415, allocations: 0.5194 MB / 437.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01695/0.4585, allocations: 7.06 MB / 444.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002226/0.4587, allocations: 15.84 kB / 444.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00111/0.4599, allocations: 224 kB / 445.1 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000251/0.4601, allocations: 258.6 kB / 445.3 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01203/0.4722, allocations: 5.948 MB / 451.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03857/0.5108, allocations: 22.61 MB / 473.9 MB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008742/0.5196, allocations: 8.543 MB / 482.4 MB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003844/0.5234, allocations: 2.285 MB / 484.7 MB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01117/0.5346, allocations: 6.463 MB / 491.2 MB, free: 4.418 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.182e-05/0.5347, allocations: 64.5 kB / 491.2 MB, free: 4.348 MB / 398.1 MB Notification: Performance of pre-optimization done (n=220): time 4.358e-06/0.5347, allocations: 0 / 491.2 MB, free: 4.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=240): time 0.02182/0.5565, allocations: 11.07 MB / 0.4905 GB, free: 9.035 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.5566, allocations: 81.39 kB / 0.4906 GB, free: 8.941 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005203/0.5618, allocations: 3.169 MB / 0.4937 GB, free: 5.773 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002222/0.562, allocations: 69.7 kB / 0.4938 GB, free: 5.699 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001668/0.5637, allocations: 2.506 MB / 0.4962 GB, free: 3.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006876/0.5644, allocations: 0.8279 MB / 0.497 GB, free: 2.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009186/0.5654, allocations: 0.5614 MB / 0.4976 GB, free: 1.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.188e-05/0.5654, allocations: 301.1 kB / 0.4979 GB, free: 1.453 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00212/0.5676, allocations: 1.337 MB / 0.4992 GB, free: 116 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002744/0.5703, allocations: 2.343 MB / 0.5015 GB, free: 13.32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005234/0.5756, allocations: 3.92 MB / 0.5053 GB, free: 8.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.407e-05/0.5756, allocations: 8 kB / 0.5053 GB, free: 8.922 MB / 430.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007749/0.5834, allocations: 4.725 MB / 0.5099 GB, free: 4.086 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.666e-05/0.5834, allocations: 16 kB / 0.5099 GB, free: 4.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.826e-05/0.5835, allocations: 36.59 kB / 0.51 GB, free: 4.035 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/0.5847, allocations: 0.5407 MB / 0.5105 GB, free: 3.473 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002631/0.5874, allocations: 0.7371 MB / 0.5112 GB, free: 2.734 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008268/0.5956, allocations: 9.592 MB / 0.5206 GB, free: 8.473 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002635/0.5983, allocations: 191.8 kB / 0.5208 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003199/0.5986, allocations: 140 kB / 0.5209 GB, free: 8.148 MB / 446.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.00276/0.6014, allocations: 1.578 MB / 0.5224 GB, free: 6.559 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00086/0.6023, allocations: 351.6 kB / 0.5228 GB, free: 6.211 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007063/0.6093, allocations: 4.081 MB / 0.5268 GB, free: 2.035 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/0.6094, allocations: 20 kB / 0.5268 GB, free: 2.016 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.209e-05/0.6094, allocations: 12 kB / 0.5268 GB, free: 2.004 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.338e-05/0.6094, allocations: 15.89 kB / 0.5268 GB, free: 1.988 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1842/0.7936, allocations: 9.01 MB / 0.5356 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/0.7937, allocations: 7.688 kB / 0.5356 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/0.7954, allocations: 401.4 kB / 0.536 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002066/0.7975, allocations: 0.765 MB / 0.5367 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002266/0.7978, allocations: 65.56 kB / 0.5368 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01293/0.8107, allocations: 15.48 MB / 0.5519 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.256e-06/0.8107, allocations: 9.375 kB / 0.5519 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/0.8208, allocations: 5.866 MB / 0.5577 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002142/0.823, allocations: 0.6972 MB / 0.5583 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008468/0.8238, allocations: 60.94 kB / 0.5584 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001811/0.8257, allocations: 137.3 kB / 0.5585 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005031/0.8262, allocations: 188.2 kB / 0.5587 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001412/0.8263, allocations: 74.92 kB / 0.5588 GB, free: 120.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003104/0.8294, allocations: 2.136 MB / 0.5609 GB, free: 119.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.8295, allocations: 0 / 0.5609 GB, free: 119.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004043/0.8335, allocations: 1.001 MB / 0.5618 GB, free: 119.4 MB / 446.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.009542/0.8431, allocations: 6.596 MB / 0.5683 GB, free: 116.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005962/0.8491, allocations: 4.138 MB / 0.5723 GB, free: 114.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/0.8491, allocations: 0 / 0.5723 GB, free: 114.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003689/0.8528, allocations: 2.762 MB / 0.575 GB, free: 112.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004672/0.8575, allocations: 0.9214 MB / 0.5759 GB, free: 111.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07209/0.9296, allocations: 45.38 MB / 0.6202 GB, free: 62.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002709/0.9324, allocations: 3.418 MB / 0.6236 GB, free: 58.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002565/0.935, allocations: 0.8035 MB / 0.6244 GB, free: 58.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002217/0.9372, allocations: 2.112 MB / 0.6264 GB, free: 55.96 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.9372, allocations: 4 kB / 0.6264 GB, free: 55.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3218/1.259, allocations: 87.61 MB / 0.712 GB, free: 138.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/1.259, allocations: 271.9 kB / 0.7122 GB, free: 137.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.257/5.517, allocations: 4.578 kB / 0.7122 GB, free: 137.8 MB / 462.1 MB (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.0.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