Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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.002133/0.002133, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002699/0.002699, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002942/0.002942, allocations: 67.88 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2834, allocations: 50.54 MB / 408.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02453/0.308, allocations: 20.93 MB / 429.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01461/0.3226, allocations: 6.171 MB / 435.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004416/0.3271, allocations: 135.5 kB / 436.1 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004709/0.3318, allocations: 1.37 MB / 437.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007461/0.3394, allocations: 1.898 MB / 439.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004307/0.3437, allocations: 1.281 MB / 440.6 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01017/0.3539, allocations: 6.16 MB / 446.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008112/0.362, allocations: 5.446 MB / 452.2 MB, free: 5.848 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005501/0.3676, allocations: 2.846 MB / 455.1 MB, free: 2.992 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007183/0.3748, allocations: 3.503 MB / 458.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002402/0.3772, allocations: 0.7812 MB / 459.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00354/0.3808, allocations: 1.089 MB / 460.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002313/0.3831, allocations: 1.94 MB / 462.4 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006631/0.3898, allocations: 3.361 MB / 465.8 MB, free: 8.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01472/0.4045, allocations: 10.38 MB / 476.1 MB, free: 13.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.4046, allocations: 4 kB / 476.1 MB, free: 13.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.4046, allocations: 0 / 476.1 MB, free: 13.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003167/0.4049, allocations: 0 / 476.1 MB, free: 13.86 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01936/0.4243, allocations: 6.768 MB / 482.9 MB, free: 7.008 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.4243, allocations: 11.97 kB / 482.9 MB, free: 6.996 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001381/0.4257, allocations: 0.7039 MB / 483.6 MB, free: 6.281 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004961/0.4307, allocations: 1.028 MB / 484.7 MB, free: 5.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009017/0.4398, allocations: 3.613 MB / 488.3 MB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004485/0.4402, allocations: 386.6 kB / 488.6 MB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001625/0.4419, allocations: 0.5076 MB / 489.1 MB, free: 0.6758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01547/0.4574, allocations: 6.79 MB / 495.9 MB, free: 9.816 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001393/0.4575, allocations: 7.953 kB / 495.9 MB, free: 9.809 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006025/0.4581, allocations: 212 kB / 496.2 MB, free: 9.602 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003046/0.4585, allocations: 242.2 kB / 496.4 MB, free: 9.363 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01202/0.4705, allocations: 5.755 MB / 0.4904 GB, free: 3.598 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03877/0.5093, allocations: 20.99 MB / 0.5109 GB, free: 14.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009926/0.5193, allocations: 8.817 MB / 0.5195 GB, free: 4.285 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00415/0.5235, allocations: 2.198 MB / 0.5216 GB, free: 2.078 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01129/0.5348, allocations: 6.204 MB / 0.5277 GB, free: 11.68 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.429e-05/0.5349, allocations: 60.56 kB / 0.5277 GB, free: 11.61 MB / 462.1 MB Notification: Performance of pre-optimization done (n=205): time 4.278e-06/0.5349, allocations: 0 / 0.5277 GB, free: 11.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=222): time 0.02317/0.5581, allocations: 10.52 MB / 0.538 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.336e-05/0.5582, allocations: 73.41 kB / 0.5381 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2052/0.7634, allocations: 2.92 MB / 0.5409 GB, free: 120.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004453/0.7639, allocations: 66.8 kB / 0.541 GB, free: 120.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001944/0.7658, allocations: 2.43 MB / 0.5434 GB, free: 119.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000908/0.7668, allocations: 0.8037 MB / 0.5442 GB, free: 119.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00101/0.7678, allocations: 0.5206 MB / 0.5447 GB, free: 118.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.012e-05/0.7678, allocations: 304.9 kB / 0.545 GB, free: 118.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002652/0.7705, allocations: 1.272 MB / 0.5462 GB, free: 118.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003073/0.7736, allocations: 2.178 MB / 0.5483 GB, free: 116.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004885/0.7785, allocations: 3.668 MB / 0.5519 GB, free: 114.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.458e-05/0.7785, allocations: 11.75 kB / 0.5519 GB, free: 114.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006259/0.7848, allocations: 4.483 MB / 0.5563 GB, free: 112.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.073e-05/0.7848, allocations: 19.72 kB / 0.5563 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.252e-05/0.7849, allocations: 29.64 kB / 0.5563 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.7859, allocations: 0.5394 MB / 0.5569 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002186/0.7881, allocations: 0.6857 MB / 0.5575 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006578/0.7947, allocations: 10.35 MB / 0.5677 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002712/0.7975, allocations: 177.3 kB / 0.5678 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002651/0.7978, allocations: 127.8 kB / 0.5679 GB, free: 102.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (345): * Single equations (assignments): 338 * 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,11,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.002283/0.8001, allocations: 1.521 MB / 0.5694 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006187/0.8007, allocations: 333.9 kB / 0.5697 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005324/0.806, allocations: 3.911 MB / 0.5736 GB, free: 97.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.806, allocations: 20 kB / 0.5736 GB, free: 97.41 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.8061, allocations: 8 kB / 0.5736 GB, free: 97.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-05/0.8061, allocations: 11.97 kB / 0.5736 GB, free: 97.39 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01116/0.8172, allocations: 8.517 MB / 0.5819 GB, free: 88.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.8173, allocations: 4 kB / 0.5819 GB, free: 88.74 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/0.8187, allocations: 375.4 kB / 0.5823 GB, free: 88.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001626/0.8204, allocations: 0.7407 MB / 0.583 GB, free: 87.61 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001618/0.8206, allocations: 68.09 kB / 0.5831 GB, free: 87.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01071/0.8313, allocations: 16.77 MB / 0.5994 GB, free: 69.69 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.8313, allocations: 4 kB / 0.5995 GB, free: 69.68 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007212/0.8385, allocations: 5.6 MB / 0.6049 GB, free: 63.95 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/0.84, allocations: 0.665 MB / 0.6056 GB, free: 63.26 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006037/0.8406, allocations: 59.98 kB / 0.6056 GB, free: 63.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.8421, allocations: 131.9 kB / 0.6058 GB, free: 63.07 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000408/0.8425, allocations: 169.6 kB / 0.6059 GB, free: 62.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.8427, allocations: 63.98 kB / 0.606 GB, free: 62.84 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00243/0.8451, allocations: 1.98 MB / 0.6079 GB, free: 60.87 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8451, allocations: 0 / 0.6079 GB, free: 60.87 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003225/0.8483, allocations: 0.9335 MB / 0.6088 GB, free: 59.94 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (182): * Single equations (assignments): 174 * 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,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007842/0.8562, allocations: 6.309 MB / 0.615 GB, free: 53.49 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00528/0.8615, allocations: 3.984 MB / 0.6189 GB, free: 49.41 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.8615, allocations: 0 / 0.6189 GB, free: 49.41 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003626/0.8652, allocations: 2.688 MB / 0.6215 GB, free: 46.63 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004543/0.8698, allocations: 0.8606 MB / 0.6223 GB, free: 45.79 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04141/0.9112, allocations: 33.47 MB / 0.655 GB, free: 11.04 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00232/0.9136, allocations: 3.302 MB / 0.6583 GB, free: 7.703 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002052/0.9156, allocations: 0.758 MB / 0.659 GB, free: 6.941 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001927/0.9176, allocations: 1.952 MB / 0.6609 GB, free: 4.988 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.9176, allocations: 0 / 0.6609 GB, free: 4.988 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1652/1.083, allocations: 82.06 MB / 0.741 GB, free: 3.578 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.37/17.46, allocations: 7.625 kB / 0.741 GB, free: 3.574 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches