Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 108.1 kB / 17.15 MB, free: 6.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.339/1.339, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 51.92 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07416/0.07529, allocations: 46.63 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01261/0.08793, allocations: 12.69 MB / 339.3 MB, free: 8.141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00681/0.09478, allocations: 4.237 MB / 343.5 MB, free: 3.887 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001474/0.09632, allocations: 63.75 kB / 343.6 MB, free: 3.824 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002351/0.09868, allocations: 0.8551 MB / 344.5 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002873/0.1016, allocations: 1.174 MB / 345.6 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.1032, allocations: 0.7836 MB / 346.4 MB, free: 1 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004413/0.1076, allocations: 4.343 MB / 350.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002813/0.1104, allocations: 2.646 MB / 353.4 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001809/0.1123, allocations: 1.49 MB / 354.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001994/0.1143, allocations: 1.949 MB / 356.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000449/0.1147, allocations: 296 kB / 357.1 MB, free: 6.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001057/0.1158, allocations: 0.4958 MB / 357.6 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006898/0.1165, allocations: 0.9032 MB / 358.5 MB, free: 4.777 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001722/0.1182, allocations: 1.882 MB / 360.4 MB, free: 2.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005808/0.124, allocations: 6.527 MB / 366.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1241, allocations: 0 / 366.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.1241, allocations: 0 / 366.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001491/0.1243, allocations: 3.938 kB / 366.9 MB, free: 12.34 MB / 318.1 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.01124/0.1355, allocations: 4.386 MB / 371.3 MB, free: 7.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.1356, allocations: 8.031 kB / 371.3 MB, free: 7.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004217/0.1398, allocations: 0.8124 MB / 372.1 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004085/0.1439, allocations: 2.264 MB / 374.4 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001772/0.1441, allocations: 230.6 kB / 374.6 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004692/0.1446, allocations: 328 kB / 375 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1531/0.2977, allocations: 4.243 MB / 379.2 MB, free: 49.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001415/0.2979, allocations: 5.734 kB / 379.2 MB, free: 49.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006602/0.2986, allocations: 125.3 kB / 379.3 MB, free: 49.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001371/0.2987, allocations: 147.6 kB / 379.5 MB, free: 49.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006231/0.3049, allocations: 3.652 MB / 383.1 MB, free: 48.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01742/0.3224, allocations: 13.5 MB / 396.6 MB, free: 40.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005622/0.3281, allocations: 6.858 MB / 403.5 MB, free: 33.54 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001856/0.33, allocations: 1.419 MB / 404.9 MB, free: 32.85 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005533/0.3355, allocations: 3.635 MB / 408.5 MB, free: 30.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.3356, allocations: 51.41 kB / 408.6 MB, free: 30.17 MB / 318.1 MB Notification: Performance of pre-optimization done (n=124): time 2.545e-06/0.3356, allocations: 1.094 kB / 408.6 MB, free: 30.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=144): time 0.01102/0.3466, allocations: 6.631 MB / 415.2 MB, free: 24.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.712e-05/0.3467, allocations: 64.72 kB / 415.3 MB, free: 24.31 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002029/0.3487, allocations: 1.863 MB / 417.1 MB, free: 22.45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.052e-05/0.3488, allocations: 53.7 kB / 417.2 MB, free: 22.39 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005483/0.3493, allocations: 1.407 MB / 418.6 MB, free: 20.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002333/0.3496, allocations: 0.4996 MB / 419.1 MB, free: 20.47 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003871/0.35, allocations: 299.3 kB / 419.4 MB, free: 20.17 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.271e-05/0.35, allocations: 309.1 kB / 419.7 MB, free: 19.87 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009663/0.351, allocations: 0.7574 MB / 420.5 MB, free: 19.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/0.3521, allocations: 1.224 MB / 421.7 MB, free: 17.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002187/0.3543, allocations: 2.112 MB / 423.8 MB, free: 15.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/0.3543, allocations: 4 kB / 423.8 MB, free: 15.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003618/0.3579, allocations: 2.662 MB / 426.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.358, allocations: 12 kB / 426.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/0.358, allocations: 16 kB / 426.5 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.3592, allocations: 0.4978 MB / 427 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.3606, allocations: 387.4 kB / 427.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006093/0.3667, allocations: 6.404 MB / 433.8 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.3678, allocations: 79.86 kB / 433.8 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.3679, allocations: 71.98 kB / 433.9 MB, free: 4.988 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001254/0.3692, allocations: 1.044 MB / 435 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00024/0.3694, allocations: 193.6 kB / 435.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003434/0.3729, allocations: 2.496 MB / 437.6 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.3729, allocations: 16 kB / 437.7 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.3729, allocations: 4 kB / 437.7 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.3729, allocations: 7.969 kB / 437.7 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007501/0.3804, allocations: 5.542 MB / 443.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.3805, allocations: 4 kB / 443.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009954/0.3815, allocations: 207.7 kB / 443.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001263/0.3827, allocations: 0.5168 MB / 443.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.544e-05/0.3828, allocations: 35.98 kB / 444 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/0.3932, allocations: 10.45 MB / 454.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3932, allocations: 7.969 kB / 454.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005743/0.399, allocations: 3.563 MB / 458 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/0.4003, allocations: 466.5 kB / 458.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005203/0.4008, allocations: 28 kB / 458.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.4019, allocations: 63.95 kB / 458.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/0.4022, allocations: 113.1 kB / 458.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.073e-05/0.4023, allocations: 39.98 kB / 458.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00209/0.4044, allocations: 1.286 MB / 460 MB, free: 10.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4044, allocations: 0 / 460 MB, free: 10.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00207/0.4064, allocations: 0.5859 MB / 460.6 MB, free: 9.422 MB / 350.1 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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,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.0003652/0.4068, allocations: 169.6 kB / 460.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004049/0.4109, allocations: 2.391 MB / 463.1 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.4109, allocations: 0 / 463.1 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002552/0.4135, allocations: 1.716 MB / 464.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00263/0.4161, allocations: 0.4944 MB / 465.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.4273, allocations: 7.314 MB / 472.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002431/0.4297, allocations: 2.377 MB / 475 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001525/0.4313, allocations: 412.8 kB / 475.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004197/0.4317, allocations: 131.4 kB / 475.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4317, allocations: 0 / 475.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of Templates: time 0.05098/0.4827, allocations: 29.81 MB / 0.4935 GB, free: 12.43 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat","/var/lib/jenkins/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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches