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.001082/0.001082, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001111/0.001111, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 58.59 kB / 306.6 MB, free: 0.7969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09915/0.1003, allocations: 50.53 MB / 357.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.1604/0.2607, allocations: 22.07 MB / 379.2 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0117/0.2725, allocations: 6.558 MB / 385.7 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004138/0.2766, allocations: 136.2 kB / 385.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004351/0.281, allocations: 1.299 MB / 387.2 MB, free: 5.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006307/0.2874, allocations: 1.825 MB / 389 MB, free: 4.375 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003351/0.2908, allocations: 1.198 MB / 390.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009077/0.2999, allocations: 6.731 MB / 396.9 MB, free: 128 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008629/0.3085, allocations: 5.587 MB / 402.5 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005036/0.3136, allocations: 2.923 MB / 405.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005973/0.3196, allocations: 3.592 MB / 409 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002327/0.3219, allocations: 0.8164 MB / 409.8 MB, free: 7.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004039/0.326, allocations: 1.132 MB / 411 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002848/0.3288, allocations: 2.022 MB / 413 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006273/0.3351, allocations: 3.543 MB / 416.5 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01216/0.3473, allocations: 10.73 MB / 427.3 MB, free: 6.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3473, allocations: 4 kB / 427.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3474, allocations: 0 / 427.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002147/0.3476, allocations: 0 / 427.3 MB, free: 6.348 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.01528/0.3629, allocations: 6.953 MB / 434.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.3629, allocations: 8.031 kB / 434.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000917/0.3638, allocations: 0.729 MB / 435 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004557/0.3684, allocations: 1.075 MB / 436 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005481/0.3739, allocations: 3.621 MB / 439.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003089/0.3742, allocations: 426.9 kB / 440.1 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000689/0.3749, allocations: 0.5233 MB / 440.6 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01081/0.3857, allocations: 7.052 MB / 447.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001104/0.3859, allocations: 19.78 kB / 447.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004706/0.3863, allocations: 220 kB / 447.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002162/0.3866, allocations: 258.6 kB / 448.1 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009136/0.3957, allocations: 5.944 MB / 454.1 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03184/0.4276, allocations: 22.61 MB / 476.7 MB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008038/0.4356, allocations: 8.547 MB / 485.2 MB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00344/0.4391, allocations: 2.285 MB / 487.5 MB, free: 8.293 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01061/0.4497, allocations: 6.467 MB / 494 MB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.658e-05/0.4498, allocations: 60.5 kB / 494 MB, free: 1.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=220): time 3.567e-06/0.4498, allocations: 0 / 494 MB, free: 1.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=240): time 0.02183/0.4717, allocations: 11.07 MB / 0.4933 GB, free: 6.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.4717, allocations: 81.39 kB / 0.4933 GB, free: 6.156 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004987/0.4767, allocations: 3.173 MB / 0.4964 GB, free: 2.984 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000172/0.4769, allocations: 65.7 kB / 0.4965 GB, free: 2.914 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001699/0.4786, allocations: 2.506 MB / 0.499 GB, free: 384 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006902/0.4793, allocations: 0.832 MB / 0.4998 GB, free: 15.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009191/0.4803, allocations: 0.5652 MB / 0.5003 GB, free: 14.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.299e-05/0.4804, allocations: 305.1 kB / 0.5006 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002115/0.4825, allocations: 1.334 MB / 0.5019 GB, free: 13.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002518/0.485, allocations: 2.339 MB / 0.5042 GB, free: 10.53 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004851/0.4899, allocations: 3.924 MB / 0.508 GB, free: 6.133 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.157e-05/0.4899, allocations: 8 kB / 0.508 GB, free: 6.125 MB / 430.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007511/0.4974, allocations: 4.725 MB / 0.5126 GB, free: 1.289 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/0.4975, allocations: 16 kB / 0.5127 GB, free: 1.273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.053e-05/0.4975, allocations: 32 kB / 0.5127 GB, free: 1.242 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001226/0.4987, allocations: 0.5471 MB / 0.5132 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002581/0.5013, allocations: 0.7411 MB / 0.514 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00954/0.5109, allocations: 10.46 MB / 0.5242 GB, free: 4.773 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002706/0.5136, allocations: 195.7 kB / 0.5244 GB, free: 4.582 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004077/0.514, allocations: 140 kB / 0.5245 GB, free: 4.445 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.002981/0.517, allocations: 1.574 MB / 0.526 GB, free: 2.859 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008414/0.5179, allocations: 351.6 kB / 0.5264 GB, free: 2.512 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1646/0.6825, allocations: 4.065 MB / 0.5303 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.743e-05/0.6826, allocations: 23.81 kB / 0.5304 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/0.6826, allocations: 9.172 kB / 0.5304 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.924e-05/0.6827, allocations: 13.22 kB / 0.5304 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01398/0.6966, allocations: 9.004 MB / 0.5392 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.6967, allocations: 9.703 kB / 0.5392 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001671/0.6984, allocations: 407 kB / 0.5396 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001893/0.7003, allocations: 0.7635 MB / 0.5403 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001778/0.7005, allocations: 64.78 kB / 0.5404 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01166/0.7121, allocations: 16.91 MB / 0.5569 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.7122, allocations: 5.469 kB / 0.5569 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007604/0.7198, allocations: 5.867 MB / 0.5626 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/0.7212, allocations: 0.6948 MB / 0.5633 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004757/0.7217, allocations: 59.61 kB / 0.5634 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.7232, allocations: 137.3 kB / 0.5635 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003767/0.7236, allocations: 182.8 kB / 0.5637 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/0.7237, allocations: 71.08 kB / 0.5637 GB, free: 117.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002529/0.7262, allocations: 2.137 MB / 0.5658 GB, free: 116.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.7263, allocations: 0 / 0.5658 GB, free: 116.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002814/0.7291, allocations: 1.006 MB / 0.5668 GB, free: 116.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.007222/0.7363, allocations: 6.579 MB / 0.5732 GB, free: 113.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008851/0.7452, allocations: 5.716 MB / 0.5788 GB, free: 109.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.229e-06/0.7452, allocations: 0 / 0.5788 GB, free: 109.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003095/0.7483, allocations: 2.755 MB / 0.5815 GB, free: 106.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003719/0.752, allocations: 0.9742 MB / 0.5825 GB, free: 105.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05645/0.8085, allocations: 45.39 MB / 0.6268 GB, free: 55.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003124/0.8117, allocations: 3.42 MB / 0.6301 GB, free: 52.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002412/0.8141, allocations: 0.8074 MB / 0.6309 GB, free: 51.37 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002069/0.8162, allocations: 2.108 MB / 0.633 GB, free: 49.26 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/0.8162, allocations: 0 / 0.633 GB, free: 49.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5865/1.403, allocations: 89.58 MB / 0.7204 GB, free: 145.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001649/1.403, allocations: 273.8 kB / 0.7207 GB, free: 144.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.24/5.643, allocations: 2.156 kB / 0.7207 GB, free: 144.9 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