Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.02629/0.02629, allocations: 182.5 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.533/3.533, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001748/0.001748, allocations: 88.53 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006314/0.0006316, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.484/0.4847, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.02737/0.5121, allocations: 10.32 MB / 384.9 MB, free: 37.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01675/0.5289, allocations: 4.082 MB / 388.9 MB, free: 34.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003692/0.5327, allocations: 61.28 kB / 389 MB, free: 34.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006089/0.5389, allocations: 0.7504 MB / 389.7 MB, free: 33.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008069/0.547, allocations: 1.111 MB / 390.9 MB, free: 32.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004222/0.5513, allocations: 0.5846 MB / 391.4 MB, free: 31.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009798/0.5611, allocations: 2.762 MB / 394.2 MB, free: 29.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006685/0.5679, allocations: 2.176 MB / 396.4 MB, free: 26.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004054/0.572, allocations: 1.242 MB / 397.6 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005116/0.5772, allocations: 1.482 MB / 399.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00174/0.579, allocations: 204 kB / 399.3 MB, free: 24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004022/0.5831, allocations: 371.8 kB / 399.7 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002133/0.5853, allocations: 0.7398 MB / 400.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002429/0.5878, allocations: 0.7343 MB / 401.1 MB, free: 22.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01195/0.5999, allocations: 5.486 MB / 406.6 MB, free: 16.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.5999, allocations: 4 kB / 406.6 MB, free: 16.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.6, allocations: 0 / 406.6 MB, free: 16.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002301/0.6002, allocations: 0 / 406.6 MB, free: 16.65 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.02247/0.6227, allocations: 3.741 MB / 410.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/0.6228, allocations: 12.03 kB / 410.4 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01153/0.6343, allocations: 0.8154 MB / 411.2 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009668/0.6441, allocations: 2.214 MB / 413.4 MB, free: 9.734 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004722/0.6446, allocations: 234.2 kB / 413.6 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001902/0.6465, allocations: 319.9 kB / 414 MB, free: 9.191 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0202/0.6668, allocations: 4.207 MB / 418.2 MB, free: 4.934 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002479/0.6671, allocations: 11.83 kB / 418.2 MB, free: 4.922 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001318/0.6685, allocations: 143.9 kB / 418.3 MB, free: 4.781 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002973/0.6688, allocations: 142.2 kB / 418.5 MB, free: 4.641 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01743/0.6863, allocations: 3.647 MB / 422.1 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05698/0.7433, allocations: 13.51 MB / 435.6 MB, free: 3.125 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01683/0.7602, allocations: 6.873 MB / 442.5 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01464/0.7749, allocations: 3.231 MB / 445.7 MB, free: 8.031 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.041e-05/0.7751, allocations: 47.88 kB / 445.8 MB, free: 7.977 MB / 330.7 MB Notification: Performance of pre-optimization done (n=130): time 5.981e-06/0.7751, allocations: 0 / 445.8 MB, free: 7.977 MB / 330.7 MB Notification: Performance of matching and sorting (n=150): time 0.03707/0.8122, allocations: 6.757 MB / 452.5 MB, free: 1.027 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.142e-05/0.8124, allocations: 64.72 kB / 452.6 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00719/0.8196, allocations: 1.807 MB / 454.4 MB, free: 15.14 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004215/0.8201, allocations: 53.7 kB / 454.4 MB, free: 15.08 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002259/0.8223, allocations: 1.341 MB / 455.8 MB, free: 13.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001215/0.8236, allocations: 0.5083 MB / 456.3 MB, free: 13.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002771/0.824, allocations: 36 kB / 456.3 MB, free: 13.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003996/0.8244, allocations: 386.7 kB / 456.7 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003947/0.8284, allocations: 0.7769 MB / 457.5 MB, free: 12.01 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004564/0.833, allocations: 1.234 MB / 458.7 MB, free: 10.59 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004711/0.8378, allocations: 0.9941 MB / 459.7 MB, free: 9.594 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.144e-05/0.8379, allocations: 4 kB / 459.7 MB, free: 9.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.01428/0.8522, allocations: 2.575 MB / 462.3 MB, free: 7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.523e-05/0.8523, allocations: 8 kB / 462.3 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.225e-05/0.8524, allocations: 16 kB / 462.3 MB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00423/0.8566, allocations: 0.49 MB / 462.8 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004572/0.8613, allocations: 407.3 kB / 463.2 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02265/0.884, allocations: 6.531 MB / 469.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003635/0.8877, allocations: 79.86 kB / 469.8 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005434/0.8883, allocations: 72 kB / 469.9 MB, free: 15.13 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (184): * Single equations (assignments): 182 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004883/0.8932, allocations: 1.052 MB / 470.9 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000997/0.8942, allocations: 197.6 kB / 471.1 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/0.9063, allocations: 2.57 MB / 473.7 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.055e-05/0.9064, allocations: 12 kB / 473.7 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.576e-05/0.9065, allocations: 8 kB / 473.7 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.969e-05/0.9066, allocations: 7.969 kB / 473.7 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0243/0.9309, allocations: 5.59 MB / 479.3 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.14e-05/0.931, allocations: 3.984 kB / 479.3 MB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003329/0.9343, allocations: 231.9 kB / 479.5 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003702/0.9381, allocations: 0.4901 MB / 480 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004085/0.9386, allocations: 32 kB / 480.1 MB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.029/0.9676, allocations: 10.58 MB / 490.6 MB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.9677, allocations: 0 / 490.6 MB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01746/0.9852, allocations: 3.752 MB / 494.4 MB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002468/0.9877, allocations: 458.6 kB / 494.8 MB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001057/0.9889, allocations: 35.94 kB / 494.9 MB, free: 5.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003236/0.9921, allocations: 83.89 kB / 495 MB, free: 5.016 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008075/0.993, allocations: 105.1 kB / 495.1 MB, free: 4.914 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003205/0.9934, allocations: 40 kB / 495.1 MB, free: 4.875 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006118/0.9995, allocations: 1.242 MB / 496.3 MB, free: 3.641 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.302e-06/0.9996, allocations: 0 / 496.3 MB, free: 3.641 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006906/1.007, allocations: 0.5859 MB / 496.9 MB, free: 3.055 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.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 (108): * Single equations (assignments): 103 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008385/1.007, allocations: 169.7 kB / 497.1 MB, free: 2.879 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01252/1.02, allocations: 2.437 MB / 499.5 MB, free: 420 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/1.02, allocations: 3.938 kB / 499.5 MB, free: 416 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008208/1.028, allocations: 1.778 MB / 0.4896 GB, free: 14.57 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006931/1.035, allocations: 493.9 kB / 0.49 GB, free: 14.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0312/1.067, allocations: 7.149 MB / 0.497 GB, free: 6.891 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008084/1.075, allocations: 2.375 MB / 0.4993 GB, free: 4.488 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001417/1.076, allocations: 139.4 kB / 0.4995 GB, free: 4.355 MB / 394.7 MB Notification: Performance of SimCode: time 1.794e-06/1.076, allocations: 0 / 0.4995 GB, free: 4.355 MB / 394.7 MB Notification: Performance of Templates: time 0.6521/1.728, allocations: 91.47 MB / 0.5888 GB, free: 43.1 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Initialize/AIMC_Initialize.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches