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.001249/0.001249, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.00139, allocations: 64.14 kB / 307.1 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1227, allocations: 50.53 MB / 357.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.2499/0.3726, allocations: 22.37 MB / 380 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0177/0.3904, allocations: 6.673 MB / 386.6 MB, free: 5.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007146/0.3976, allocations: 142.5 kB / 386.8 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007175/0.4048, allocations: 1.493 MB / 388.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01106/0.4159, allocations: 2.037 MB / 390.3 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005144/0.4211, allocations: 1.33 MB / 391.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0123/0.4334, allocations: 6.543 MB / 398.2 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009358/0.4428, allocations: 5.593 MB / 403.8 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006714/0.4495, allocations: 2.992 MB / 406.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0081/0.4577, allocations: 3.672 MB / 410.4 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00263/0.4603, allocations: 0.8164 MB / 411.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00456/0.4649, allocations: 1.128 MB / 412.4 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00304/0.468, allocations: 2.037 MB / 414.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008391/0.4764, allocations: 3.547 MB / 418 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01677/0.4932, allocations: 10.74 MB / 428.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.4932, allocations: 0 / 428.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4932, allocations: 4 kB / 428.7 MB, free: 5.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003671/0.4936, allocations: 3.938 kB / 428.7 MB, free: 5.031 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.02251/0.5161, allocations: 6.956 MB / 435.7 MB, free: 14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.039e-05/0.5162, allocations: 12.03 kB / 435.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002459/0.5187, allocations: 0.7251 MB / 436.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006128/0.5248, allocations: 1.083 MB / 437.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009443/0.5343, allocations: 3.656 MB / 441.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005826/0.5349, allocations: 419 kB / 441.6 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002226/0.5371, allocations: 0.5194 MB / 442.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02493/0.5621, allocations: 7.056 MB / 449.1 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003672/0.5625, allocations: 11.91 kB / 449.1 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002203/0.5647, allocations: 216 kB / 449.4 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004099/0.5651, allocations: 270.6 kB / 449.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01739/0.5825, allocations: 5.952 MB / 455.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05379/0.6364, allocations: 22.59 MB / 478.2 MB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009988/0.6464, allocations: 8.562 MB / 486.7 MB, free: 9.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003949/0.6504, allocations: 2.289 MB / 489 MB, free: 6.934 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01127/0.6617, allocations: 6.459 MB / 495.5 MB, free: 280 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/0.6618, allocations: 60.55 kB / 495.5 MB, free: 212 kB / 398.1 MB Notification: Performance of pre-optimization done (n=220): time 3.326e-06/0.6618, allocations: 0 / 495.5 MB, free: 212 kB / 398.1 MB Notification: Performance of matching and sorting (n=240): time 0.02394/0.6857, allocations: 11.09 MB / 0.4947 GB, free: 4.883 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.6858, allocations: 73.41 kB / 0.4948 GB, free: 4.797 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006492/0.6923, allocations: 3.181 MB / 0.4979 GB, free: 1.617 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003883/0.6927, allocations: 65.7 kB / 0.498 GB, free: 1.547 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001871/0.6946, allocations: 2.51 MB / 0.5004 GB, free: 15 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009118/0.6955, allocations: 0.828 MB / 0.5012 GB, free: 14.16 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009979/0.6965, allocations: 0.5574 MB / 0.5018 GB, free: 13.6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.6967, allocations: 309.1 kB / 0.5021 GB, free: 13.29 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002158/0.6988, allocations: 1.334 MB / 0.5034 GB, free: 11.96 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002743/0.7016, allocations: 2.339 MB / 0.5057 GB, free: 9.172 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005209/0.7068, allocations: 3.924 MB / 0.5095 GB, free: 4.773 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-05/0.7068, allocations: 8 kB / 0.5095 GB, free: 4.766 MB / 430.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008006/0.7149, allocations: 4.721 MB / 0.5141 GB, free: 15.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.905e-05/0.7149, allocations: 20 kB / 0.5141 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.156e-05/0.715, allocations: 32.66 kB / 0.5142 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001411/0.7164, allocations: 0.5508 MB / 0.5147 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003108/0.7195, allocations: 0.7332 MB / 0.5154 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/0.7297, allocations: 10.46 MB / 0.5256 GB, free: 3.426 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00345/0.7331, allocations: 191.6 kB / 0.5258 GB, free: 3.238 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000597/0.7337, allocations: 140 kB / 0.5259 GB, free: 3.102 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.003762/0.7375, allocations: 1.574 MB / 0.5275 GB, free: 1.516 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001152/0.7387, allocations: 351.7 kB / 0.5278 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2768/1.016, allocations: 4.078 MB / 0.5318 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-05/1.016, allocations: 23.91 kB / 0.5318 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.688e-05/1.016, allocations: 9.625 kB / 0.5318 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.913e-05/1.016, allocations: 11.53 kB / 0.5318 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02379/1.039, allocations: 9.011 MB / 0.5406 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.128e-05/1.04, allocations: 4.375 kB / 0.5406 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00223/1.042, allocations: 411.2 kB / 0.541 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002699/1.045, allocations: 0.7565 MB / 0.5418 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003834/1.045, allocations: 66.23 kB / 0.5418 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01598/1.061, allocations: 16.9 MB / 0.5583 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.248e-06/1.061, allocations: 9.156 kB / 0.5584 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009665/1.071, allocations: 5.862 MB / 0.5641 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002364/1.073, allocations: 0.6928 MB / 0.5648 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009918/1.074, allocations: 67.02 kB / 0.5648 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001986/1.076, allocations: 140.6 kB / 0.565 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000504/1.077, allocations: 187.2 kB / 0.5651 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/1.077, allocations: 70.34 kB / 0.5652 GB, free: 117.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003777/1.081, allocations: 2.137 MB / 0.5673 GB, free: 116.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.51e-07/1.081, allocations: 3.656 kB / 0.5673 GB, free: 116.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004696/1.085, allocations: 1.009 MB / 0.5683 GB, free: 116.3 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.008892/1.094, allocations: 6.578 MB / 0.5747 GB, free: 113.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01025/1.104, allocations: 5.71 MB / 0.5803 GB, free: 107.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/1.104, allocations: 0 / 0.5803 GB, free: 107.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003791/1.108, allocations: 2.762 MB / 0.583 GB, free: 105 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004714/1.113, allocations: 0.9781 MB / 0.5839 GB, free: 104 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04699/1.16, allocations: 43.22 MB / 0.6261 GB, free: 56.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003284/1.163, allocations: 3.422 MB / 0.6295 GB, free: 52.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002433/1.166, allocations: 0.8096 MB / 0.6303 GB, free: 52.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002289/1.168, allocations: 2.108 MB / 0.6323 GB, free: 50 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/1.168, allocations: 0 / 0.6323 GB, free: 50 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.344/1.512, allocations: 89.81 MB / 0.72 GB, free: 145.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/13.46, allocations: 2.969 kB / 0.72 GB, free: 145.1 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