Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") [: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.001205/0.001205, allocations: 178.8 kB / 8.476 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.265/1.265, allocations: 205.2 MB / 214.1 MB, free: 5.16 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009677/0.000968, allocations: 82 kB / 262.1 MB, free: 5.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.919e-06/9.949e-06, allocations: 0 / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09963/0.09966, allocations: 47.57 MB / 362.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2689/0.3686, allocations: 134.9 MB / 497.5 MB, free: 6.996 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.3689, allocations: 85.2 kB / 497.6 MB, free: 6.953 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.4472/0.8161, allocations: 129.5 MB / 0.6124 GB, free: 76.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005042/0.8167, allocations: 149.5 kB / 0.6125 GB, free: 76.28 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01464/0.8313, allocations: 5.428 MB / 0.6178 GB, free: 74.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.8314, allocations: 11.84 kB / 0.6178 GB, free: 74.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006779/0.8382, allocations: 1.174 MB / 0.619 GB, free: 73.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01316/0.8514, allocations: 4.919 MB / 0.6238 GB, free: 72.61 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000361/0.8518, allocations: 185.6 kB / 0.6239 GB, free: 72.61 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002083/0.8539, allocations: 337.8 kB / 0.6243 GB, free: 72.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01341/0.8673, allocations: 5.348 MB / 0.6295 GB, free: 70.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01958/0.8869, allocations: 6.301 MB / 0.6356 GB, free: 67.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004026/0.8874, allocations: 11.28 kB / 0.6356 GB, free: 67.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001967/0.8894, allocations: 5.562 kB / 0.6357 GB, free: 67.61 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005165/0.8899, allocations: 253.5 kB / 0.6359 GB, free: 67.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04686/0.9368, allocations: 23 MB / 0.6584 GB, free: 50.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003107/0.9399, allocations: 1.885 MB / 0.6602 GB, free: 48.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00342/0.9434, allocations: 2.262 MB / 0.6624 GB, free: 46.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.014/0.9574, allocations: 7.25 MB / 0.6695 GB, free: 40 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.9575, allocations: 65.3 kB / 0.6695 GB, free: 39.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=280): time 5.069e-06/0.9575, allocations: 4 kB / 0.6696 GB, free: 39.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=332): time 0.02228/0.9798, allocations: 10.81 MB / 0.6801 GB, free: 29.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.9799, allocations: 85.98 kB / 0.6802 GB, free: 29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004278/0.9842, allocations: 2.423 MB / 0.6826 GB, free: 26.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003239/0.9845, allocations: 25.7 kB / 0.6826 GB, free: 26.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008566/0.9854, allocations: 2.118 MB / 0.6847 GB, free: 24.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008094/0.9862, allocations: 1.078 MB / 0.6857 GB, free: 23.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002674/0.9865, allocations: 4 kB / 0.6857 GB, free: 23.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.9867, allocations: 474.6 kB / 0.6862 GB, free: 22.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002219/0.9889, allocations: 1.609 MB / 0.6877 GB, free: 21.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002581/0.9915, allocations: 2.78 MB / 0.6904 GB, free: 17.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00322/0.9947, allocations: 2.16 MB / 0.6926 GB, free: 15.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-05/0.9947, allocations: 12 kB / 0.6926 GB, free: 15.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=517) (initialization): time 0.009224/1.004, allocations: 5.489 MB / 0.6979 GB, free: 10.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/1.004, allocations: 4 kB / 0.6979 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.914e-05/1.004, allocations: 40 kB / 0.698 GB, free: 10.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002064/1.006, allocations: 0.8602 MB / 0.6988 GB, free: 9.227 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003789/1.01, allocations: 0.9321 MB / 0.6997 GB, free: 8.293 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009565/1.02, allocations: 8.958 MB / 0.7085 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004057/1.024, allocations: 155.9 kB / 0.7086 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007827/1.024, allocations: 176 kB / 0.7088 GB, free: 14.67 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 170 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 455 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001233/1.026, allocations: 219.6 kB / 0.709 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/1.027, allocations: 371.5 kB / 0.7093 GB, free: 14.08 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009946/1.037, allocations: 4.838 MB / 0.7141 GB, free: 9.168 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.227e-05/1.037, allocations: 32 kB / 0.7141 GB, free: 9.137 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.386e-05/1.037, allocations: 11.94 kB / 0.7141 GB, free: 9.125 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.215e-05/1.037, allocations: 15.94 kB / 0.7141 GB, free: 9.109 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1487/1.186, allocations: 10.12 MB / 0.724 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.006149/1.192, allocations: 4.029 MB / 0.7279 GB, free: 123.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002511/1.194, allocations: 0.5746 MB / 0.7285 GB, free: 123.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002377/1.197, allocations: 0.9374 MB / 0.7294 GB, free: 123.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002267/1.197, allocations: 28.81 kB / 0.7295 GB, free: 123.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01176/1.209, allocations: 12.42 MB / 0.7416 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/1.209, allocations: 7.312 kB / 0.7416 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01023/1.219, allocations: 7.581 MB / 0.749 GB, free: 115.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001867/1.221, allocations: 0.7889 MB / 0.7498 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009995/1.222, allocations: 22.62 kB / 0.7498 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002397/1.224, allocations: 135.1 kB / 0.7499 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003614/1.225, allocations: 187.4 kB / 0.7501 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002357/1.225, allocations: 91.28 kB / 0.7502 GB, free: 115.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003416/1.228, allocations: 1.772 MB / 0.7519 GB, free: 115.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00452/1.233, allocations: 1.042 MB / 0.7529 GB, free: 115.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 260 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 3 * 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%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009086/1.234, allocations: 482 kB / 0.7534 GB, free: 115.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007129/1.241, allocations: 4.835 MB / 0.7581 GB, free: 114.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/1.241, allocations: 3.25 kB / 0.7581 GB, free: 114.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004353/1.245, allocations: 2.868 MB / 0.7609 GB, free: 114.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004399/1.25, allocations: 0.5845 MB / 0.7615 GB, free: 114 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02097/1.271, allocations: 8.826 MB / 0.7701 GB, free: 112.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006853/1.278, allocations: 3.88 MB / 0.7739 GB, free: 111.3 MB / 426.7 MB Notification: Performance of SimCode: time 7.82e-07/1.278, allocations: 0 / 0.7739 GB, free: 111.3 MB / 426.7 MB Notification: Performance of Templates: time 0.08802/1.366, allocations: 51.73 MB / 0.8244 GB, free: 87.65 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches