Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008228/0.0008228, allocations: 175.1 kB / 16.72 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.166/1.166, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006545/0.0006546, allocations: 98.33 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000262/0.000262, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1828, allocations: 47.58 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.01491/0.1977, allocations: 20.91 MB / 396.1 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009242/0.207, allocations: 6.143 MB / 402.2 MB, free: 21.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00252/0.2095, allocations: 135.4 kB / 402.4 MB, free: 21.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002272/0.2118, allocations: 1.106 MB / 403.5 MB, free: 20.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003789/0.2156, allocations: 1.756 MB / 405.2 MB, free: 18.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002074/0.2177, allocations: 0.9689 MB / 406.2 MB, free: 17.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006435/0.2241, allocations: 8.117 MB / 414.3 MB, free: 9.453 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004943/0.2291, allocations: 5.902 MB / 420.2 MB, free: 3.465 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00277/0.2319, allocations: 2.588 MB / 422.8 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003642/0.2355, allocations: 3.381 MB / 426.2 MB, free: 13.47 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007754/0.2363, allocations: 448 kB / 426.6 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001598/0.2379, allocations: 0.6404 MB / 427.3 MB, free: 12.39 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001292/0.2392, allocations: 1.639 MB / 428.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003864/0.2431, allocations: 3.521 MB / 432.4 MB, free: 7.207 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009404/0.2525, allocations: 11.64 MB / 444.1 MB, free: 11.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2525, allocations: 4 kB / 444.1 MB, free: 11.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2525, allocations: 0 / 444.1 MB, free: 11.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.00031/0.2529, allocations: 0 / 444.1 MB, free: 11.53 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.01769/0.2706, allocations: 7.417 MB / 451.5 MB, free: 4.016 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2706, allocations: 8.031 kB / 451.5 MB, free: 4.008 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002552/0.2732, allocations: 0.955 MB / 452.5 MB, free: 3.039 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008598/0.2818, allocations: 1.678 MB / 454.1 MB, free: 1.352 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008288/0.2901, allocations: 4.412 MB / 458.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004791/0.2906, allocations: 0.5256 MB / 459.1 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001662/0.2923, allocations: 0.6834 MB / 459.8 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01875/0.311, allocations: 9.396 MB / 469.2 MB, free: 2.191 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001975/0.3112, allocations: 11.91 kB / 469.2 MB, free: 2.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001094/0.3123, allocations: 284 kB / 469.4 MB, free: 1.902 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002854/0.3126, allocations: 338.1 kB / 469.8 MB, free: 1.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01451/0.3272, allocations: 8.024 MB / 477.8 MB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1845/0.5117, allocations: 28.95 MB / 0.4949 GB, free: 90.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01182/0.5235, allocations: 16.57 MB / 0.5111 GB, free: 77.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004231/0.5278, allocations: 2.959 MB / 0.5139 GB, free: 77.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01038/0.5382, allocations: 7.769 MB / 0.5215 GB, free: 73.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.5383, allocations: 63.58 kB / 0.5216 GB, free: 73.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=259): time 9.307e-06/0.5383, allocations: 2.156 kB / 0.5216 GB, free: 73.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=265): time 0.01782/0.5561, allocations: 11.08 MB / 0.5324 GB, free: 66.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.5562, allocations: 78.94 kB / 0.5325 GB, free: 66.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003787/0.56, allocations: 3.343 MB / 0.5358 GB, free: 63.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002102/0.5602, allocations: 73.7 kB / 0.5358 GB, free: 63.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001165/0.5614, allocations: 3.034 MB / 0.5388 GB, free: 60.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004612/0.5618, allocations: 0.916 MB / 0.5397 GB, free: 59.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.562, allocations: 68 kB / 0.5397 GB, free: 59.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.5621, allocations: 449.1 kB / 0.5402 GB, free: 59.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001793/0.5639, allocations: 1.396 MB / 0.5415 GB, free: 57.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002013/0.5659, allocations: 2.434 MB / 0.5439 GB, free: 55.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004014/0.5699, allocations: 4.086 MB / 0.5479 GB, free: 50.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.241e-05/0.57, allocations: 8 kB / 0.5479 GB, free: 50.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.005931/0.5759, allocations: 4.701 MB / 0.5525 GB, free: 45.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.576, allocations: 20.66 kB / 0.5525 GB, free: 45.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.02e-05/0.576, allocations: 39.92 kB / 0.5526 GB, free: 45.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007794/0.5768, allocations: 397.8 kB / 0.5529 GB, free: 45.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002502/0.5793, allocations: 0.7956 MB / 0.5537 GB, free: 44.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004335/0.5836, allocations: 7.339 MB / 0.5609 GB, free: 36.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002326/0.586, allocations: 167.9 kB / 0.561 GB, free: 36.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002083/0.5862, allocations: 152 kB / 0.5612 GB, free: 36.26 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (411): * Single equations (assignments): 405 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00287/0.5891, allocations: 2.072 MB / 0.5632 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005492/0.5896, allocations: 371.4 kB / 0.5636 GB, free: 33.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005802/0.5954, allocations: 4.228 MB / 0.5677 GB, free: 29.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.5955, allocations: 33.48 kB / 0.5677 GB, free: 29.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.5955, allocations: 15.94 kB / 0.5677 GB, free: 29.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.967e-05/0.5955, allocations: 11.95 kB / 0.5678 GB, free: 29.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01227/0.6078, allocations: 9.885 MB / 0.5774 GB, free: 19.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.6078, allocations: 8.062 kB / 0.5774 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001528/0.6094, allocations: 407.4 kB / 0.5778 GB, free: 18.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001758/0.6111, allocations: 0.8559 MB / 0.5786 GB, free: 18.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001534/0.6113, allocations: 71.97 kB / 0.5787 GB, free: 18.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0113/0.6226, allocations: 16.06 MB / 0.5944 GB, free: 1.047 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.6226, allocations: 7.938 kB / 0.5944 GB, free: 1.039 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008758/0.6314, allocations: 6.043 MB / 0.6003 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/0.6329, allocations: 0.7463 MB / 0.601 GB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003931/0.6333, allocations: 67.98 kB / 0.6011 GB, free: 9.957 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001494/0.6348, allocations: 151.8 kB / 0.6012 GB, free: 9.809 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005105/0.6353, allocations: 189.7 kB / 0.6014 GB, free: 9.621 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/0.6355, allocations: 84.06 kB / 0.6015 GB, free: 9.539 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002932/0.6384, allocations: 2.263 MB / 0.6037 GB, free: 7.289 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.833e-06/0.6385, allocations: 0 / 0.6037 GB, free: 7.289 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002909/0.6414, allocations: 1.147 MB / 0.6048 GB, free: 6.145 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * 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): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008519/0.6499, allocations: 6.724 MB / 0.6114 GB, free: 15.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005522/0.6554, allocations: 4.126 MB / 0.6154 GB, free: 10.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.6554, allocations: 4 kB / 0.6154 GB, free: 10.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003712/0.6592, allocations: 2.858 MB / 0.6182 GB, free: 8.016 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005015/0.6642, allocations: 0.9521 MB / 0.6192 GB, free: 7.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05794/0.7221, allocations: 35.43 MB / 0.6537 GB, free: 1.387 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1295/0.8517, allocations: 4.117 MB / 0.6578 GB, free: 150.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002447/0.8542, allocations: 2.562 MB / 0.6603 GB, free: 150.4 MB / 442.7 MB Notification: Performance of SimCode: time 4.81e-07/0.8542, allocations: 1.422 kB / 0.6603 GB, free: 150.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.861/10.72, allocations: 327.2 MB / 0.9798 GB, free: 124.6 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter_MultiPhase/SMR_Inverter_MultiPhase.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches