Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001117/0.001117, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 200.6 kB / 18.72 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001226, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2715, allocations: 50.53 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.03413/0.3057, allocations: 33.5 MB / 442.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02246/0.3282, allocations: 9.235 MB / 451.5 MB, free: 6.621 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008416/0.3367, allocations: 239.2 kB / 451.8 MB, free: 6.387 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01962/0.3564, allocations: 8.039 MB / 459.8 MB, free: 14.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01345/0.3699, allocations: 3.741 MB / 463.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007315/0.3772, allocations: 2.148 MB / 465.7 MB, free: 8.434 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01731/0.3945, allocations: 13.13 MB / 478.8 MB, free: 11.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03557/0.4302, allocations: 22.49 MB / 0.4895 GB, free: 4.602 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01013/0.4403, allocations: 6.588 MB / 0.496 GB, free: 14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01163/0.452, allocations: 7.386 MB / 0.5032 GB, free: 6.586 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005192/0.4572, allocations: 1.883 MB / 0.505 GB, free: 4.703 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008073/0.4653, allocations: 2.269 MB / 0.5072 GB, free: 2.434 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005866/0.4712, allocations: 3.741 MB / 0.5109 GB, free: 14.68 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01304/0.4843, allocations: 7.117 MB / 0.5179 GB, free: 7.539 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4762/0.9605, allocations: 25.09 MB / 0.5424 GB, free: 52.98 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.9606, allocations: 6.531 kB / 0.5424 GB, free: 52.98 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.9606, allocations: 0 / 0.5424 GB, free: 52.98 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005798/0.9612, allocations: 1 kB / 0.5424 GB, free: 52.98 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.04871/1.01, allocations: 14.89 MB / 0.5569 GB, free: 48.82 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/1.01, allocations: 9.75 kB / 0.5569 GB, free: 48.82 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007054/1.017, allocations: 1.516 MB / 0.5584 GB, free: 48.71 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03847/1.056, allocations: 6.893 MB / 0.5651 GB, free: 48.02 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02031/1.076, allocations: 8.151 MB / 0.5731 GB, free: 46.88 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009347/1.077, allocations: 0.7907 MB / 0.5739 GB, free: 46.86 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005413/1.082, allocations: 1.049 MB / 0.5749 GB, free: 46.84 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04584/1.128, allocations: 17.21 MB / 0.5917 GB, free: 32.55 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005914/1.129, allocations: 21.09 kB / 0.5917 GB, free: 32.54 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004693/1.133, allocations: 440.4 kB / 0.5921 GB, free: 32.12 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006274/1.134, allocations: 0.6314 MB / 0.5927 GB, free: 31.48 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03124/1.165, allocations: 16.3 MB / 0.6087 GB, free: 15.16 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1055/1.271, allocations: 56.44 MB / 0.6638 GB, free: 6.168 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03088/1.302, allocations: 31.4 MB / 0.6944 GB, free: 3.047 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008265/1.31, allocations: 4.332 MB / 0.6987 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02327/1.333, allocations: 10.73 MB / 0.7092 GB, free: 4.02 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.541e-05/1.334, allocations: 77.81 kB / 0.7092 GB, free: 3.934 MB / 0.545 GB Notification: Performance of pre-optimization done (n=398): time 6.102e-06/1.334, allocations: 3.938 kB / 0.7092 GB, free: 3.93 MB / 0.545 GB Notification: Performance of matching and sorting (n=423): time 0.05428/1.388, allocations: 21.8 MB / 0.7305 GB, free: 13.87 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.181e-05/1.388, allocations: 120.7 kB / 0.7306 GB, free: 13.73 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009681/1.398, allocations: 4.715 MB / 0.7352 GB, free: 9.008 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009004/1.399, allocations: 97.7 kB / 0.7353 GB, free: 8.906 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003929/1.403, allocations: 4.823 MB / 0.74 GB, free: 4.07 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002329/1.405, allocations: 1.52 MB / 0.7415 GB, free: 2.57 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004191/1.409, allocations: 1.133 MB / 0.7426 GB, free: 1.426 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001171/1.409, allocations: 305.1 kB / 0.7429 GB, free: 1.125 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005551/1.415, allocations: 2.909 MB / 0.7458 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006829/1.422, allocations: 4.953 MB / 0.7506 GB, free: 8.363 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2488/1.671, allocations: 8.332 MB / 0.7587 GB, free: 229.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.777e-05/1.671, allocations: 24.28 kB / 0.7588 GB, free: 229.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01638/1.687, allocations: 9.761 MB / 0.7683 GB, free: 227.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.176e-05/1.687, allocations: 31.53 kB / 0.7683 GB, free: 227.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.085e-05/1.687, allocations: 71.11 kB / 0.7684 GB, free: 227.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004202/1.691, allocations: 1.649 MB / 0.77 GB, free: 227.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004877/1.696, allocations: 1.321 MB / 0.7713 GB, free: 227 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01958/1.716, allocations: 17.77 MB / 0.7886 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004916/1.721, allocations: 332.4 kB / 0.789 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009219/1.722, allocations: 282.4 kB / 0.7892 GB, free: 215.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * 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 (671): * Single equations (assignments): 667 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (7,28,61.2%), (1,1,100.0%), (14,44,39.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005863/1.728, allocations: 3.895 MB / 0.793 GB, free: 213.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001186/1.729, allocations: 0.5173 MB / 0.7935 GB, free: 213.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01182/1.741, allocations: 7.788 MB / 0.8011 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.748e-05/1.741, allocations: 39.56 kB / 0.8012 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.615e-05/1.741, allocations: 19.81 kB / 0.8012 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.333e-05/1.741, allocations: 22.17 kB / 0.8012 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02714/1.768, allocations: 17.47 MB / 0.8183 GB, free: 196.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.657e-05/1.768, allocations: 4 kB / 0.8183 GB, free: 196.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003032/1.771, allocations: 0.7221 MB / 0.819 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003798/1.775, allocations: 1.557 MB / 0.8205 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004771/1.775, allocations: 99.97 kB / 0.8206 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01869/1.794, allocations: 21.24 MB / 0.8413 GB, free: 172.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/1.794, allocations: 7.938 kB / 0.8414 GB, free: 172.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01722/1.811, allocations: 11.47 MB / 0.8526 GB, free: 160.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003021/1.814, allocations: 1.177 MB / 0.8537 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001165/1.816, allocations: 89.16 kB / 0.8538 GB, free: 159.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002817/1.818, allocations: 239.8 kB / 0.854 GB, free: 159.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006886/1.819, allocations: 323.4 kB / 0.8543 GB, free: 159.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002577/1.819, allocations: 135.9 kB / 0.8545 GB, free: 159 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004023/1.823, allocations: 3.186 MB / 0.8576 GB, free: 155.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.7e-07/1.823, allocations: 4 kB / 0.8576 GB, free: 155.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006639/1.83, allocations: 1.866 MB / 0.8594 GB, free: 153.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,loadInertia.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 (364): * Single equations (assignments): 357 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (14,44,41.3%), (2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0154/1.846, allocations: 12.22 MB / 0.8713 GB, free: 141.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0122/1.858, allocations: 8.163 MB / 0.8793 GB, free: 133.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/1.858, allocations: 0.5625 kB / 0.8793 GB, free: 133.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006752/1.865, allocations: 4.647 MB / 0.8838 GB, free: 128.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006257/1.871, allocations: 1.309 MB / 0.8851 GB, free: 127.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09942/1.97, allocations: 64.22 MB / 0.9478 GB, free: 60.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008832/1.979, allocations: 6.782 MB / 0.9545 GB, free: 53.48 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005181/1.984, allocations: 1.861 MB / 0.9563 GB, free: 51.61 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005944/1.99, allocations: 3.926 MB / 0.9601 GB, free: 47.68 MB / 0.5919 GB Notification: Performance of SimCode: time 9.02e-07/1.99, allocations: 0 / 0.9601 GB, free: 47.68 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4303/2.421, allocations: 151.8 MB / 1.108 GB, free: 143.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.57/24.99, allocations: 12.81 kB / 1.108 GB, free: 143.2 MB / 0.5919 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches