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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002527/0.002526, allocations: 181.5 kB / 8.152 MB, free: 2.68 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.742/1.742, allocations: 205.2 MB / 213.8 MB, free: 2.145 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001205/0.001204, allocations: 94.47 kB / 261.8 MB, free: 1.469 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 8.236e-06/8.256e-06, allocations: 0 / 314.3 MB, free: 12.89 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09704/0.09707, allocations: 47.58 MB / 361.9 MB, free: 13.2 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3132/0.4103, allocations: 107.8 MB / 469.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000319/0.4107, allocations: 88.48 kB / 469.7 MB, free: 6.973 MB / 350.1 MB Notification: Performance of FrontEnd: time 0.4561/0.8668, allocations: 79.1 MB / 0.536 GB, free: 90.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003494/0.8672, allocations: 78.34 kB / 0.5361 GB, free: 90.06 MB / 414.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.0129/0.8802, allocations: 3.209 MB / 0.5392 GB, free: 88.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.8802, allocations: 10.69 kB / 0.5392 GB, free: 88.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006783/0.887, allocations: 0.737 MB / 0.5399 GB, free: 88.75 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0119/0.899, allocations: 3.355 MB / 0.5432 GB, free: 88.23 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/0.8992, allocations: 98.75 kB / 0.5433 GB, free: 88.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001035/0.9002, allocations: 191.5 kB / 0.5435 GB, free: 88.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01031/0.9106, allocations: 3.218 MB / 0.5466 GB, free: 88.21 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01138/0.922, allocations: 3.693 MB / 0.5502 GB, free: 87.85 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001089/0.9222, allocations: 7.75 kB / 0.5502 GB, free: 87.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004283/0.9226, allocations: 3.344 kB / 0.5502 GB, free: 87.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001491/0.9228, allocations: 149.8 kB / 0.5504 GB, free: 87.83 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03326/0.956, allocations: 13.02 MB / 0.5631 GB, free: 85.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002669/0.9588, allocations: 1.064 MB / 0.5641 GB, free: 85.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003526/0.9623, allocations: 1.374 MB / 0.5655 GB, free: 85.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008473/0.9708, allocations: 3.293 MB / 0.5687 GB, free: 83.69 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/0.9709, allocations: 55.12 kB / 0.5687 GB, free: 83.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=153): time 5.771e-06/0.9709, allocations: 0 / 0.5687 GB, free: 83.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=173): time 0.01799/0.9889, allocations: 5.536 MB / 0.5741 GB, free: 81.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.989, allocations: 72.48 kB / 0.5742 GB, free: 80.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003036/0.9921, allocations: 1.368 MB / 0.5756 GB, free: 80.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003565/0.9925, allocations: 25.7 kB / 0.5756 GB, free: 80.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000486/0.993, allocations: 1.091 MB / 0.5766 GB, free: 79.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005941/0.9936, allocations: 0.5572 MB / 0.5772 GB, free: 79.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.9937, allocations: 0 / 0.5772 GB, free: 79.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.9939, allocations: 390.4 kB / 0.5776 GB, free: 78.72 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002007/0.9959, allocations: 0.8215 MB / 0.5784 GB, free: 78.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002231/0.9982, allocations: 1.282 MB / 0.5796 GB, free: 77.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002911/1.001, allocations: 1.108 MB / 0.5807 GB, free: 77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.248e-05/1.001, allocations: 3.938 kB / 0.5807 GB, free: 77 MB / 414.1 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.007355/1.009, allocations: 2.635 MB / 0.5833 GB, free: 76.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/1.009, allocations: 7.781 kB / 0.5833 GB, free: 76.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.702e-05/1.009, allocations: 12.25 kB / 0.5833 GB, free: 76.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002101/1.011, allocations: 497.2 kB / 0.5838 GB, free: 75.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003581/1.014, allocations: 437.9 kB / 0.5842 GB, free: 75.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/1.026, allocations: 5.928 MB / 0.59 GB, free: 71.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001745/1.028, allocations: 49.08 kB / 0.59 GB, free: 71.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002217/1.028, allocations: 76.56 kB / 0.5901 GB, free: 71.75 MB / 414.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 207 * 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,(7,59.2%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004269/1.028, allocations: 78.27 kB / 0.5902 GB, free: 71.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006056/1.029, allocations: 188.5 kB / 0.5903 GB, free: 71.6 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007944/1.037, allocations: 2.657 MB / 0.5929 GB, free: 70.39 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.954e-05/1.037, allocations: 16.56 kB / 0.593 GB, free: 70.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-05/1.037, allocations: 6.344 kB / 0.593 GB, free: 70.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.77e-05/1.037, allocations: 11.12 kB / 0.593 GB, free: 70.39 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01514/1.052, allocations: 5.714 MB / 0.5986 GB, free: 67.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.722e-05/1.052, allocations: 1.031 kB / 0.5986 GB, free: 67.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002532/1.055, allocations: 265 kB / 0.5988 GB, free: 67.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002302/1.057, allocations: 0.4912 MB / 0.5993 GB, free: 67.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000229/1.058, allocations: 23.78 kB / 0.5993 GB, free: 67.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01366/1.071, allocations: 9.796 MB / 0.6089 GB, free: 59.37 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.426e-06/1.071, allocations: 3.969 kB / 0.6089 GB, free: 59.37 MB / 414.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01094/1.082, allocations: 3.969 MB / 0.6128 GB, free: 57.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001739/1.084, allocations: 466.1 kB / 0.6132 GB, free: 57.04 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006625/1.085, allocations: 8.406 kB / 0.6132 GB, free: 57.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002093/1.087, allocations: 58.81 kB / 0.6133 GB, free: 57.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003449/1.087, allocations: 92.23 kB / 0.6133 GB, free: 57.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001753/1.087, allocations: 52.38 kB / 0.6134 GB, free: 57 MB / 414.1 MB Notification: Performance of sort global known variables: time 0.002655/1.09, allocations: 1.025 MB / 0.6144 GB, free: 56.57 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003734/1.094, allocations: 0.5567 MB / 0.6149 GB, free: 56.55 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 126 * 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%) 1,(1,100.0%) 12,(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.000903/1.095, allocations: 329.4 kB / 0.6153 GB, free: 56.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006966/1.102, allocations: 2.42 MB / 0.6176 GB, free: 55.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/1.102, allocations: 0 / 0.6176 GB, free: 55.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003986/1.106, allocations: 1.642 MB / 0.6192 GB, free: 53.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003486/1.109, allocations: 348.2 kB / 0.6196 GB, free: 53.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01621/1.126, allocations: 4.939 MB / 0.6244 GB, free: 48.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004658/1.13, allocations: 2.527 MB / 0.6268 GB, free: 46.83 MB / 414.1 MB Notification: Performance of SimCode: time 1.884e-06/1.13, allocations: 0 / 0.6268 GB, free: 46.83 MB / 414.1 MB Notification: Performance of Templates: time 0.2709/1.401, allocations: 91.32 MB / 0.716 GB, free: 125.2 MB / 414.1 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