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_Conveyor.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_Conveyor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400000,variableFilter="time|aimc.is.1.|aimc.is.2.|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|mass.s|mass.v|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400000,variableFilter="time|aimc.is.1.|aimc.is.2.|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|mass.s|mass.v|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor") [: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.001719/0.001719, allocations: 182.5 kB / 8.154 MB, free: 2.688 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.753/1.752, allocations: 205.2 MB / 213.8 MB, free: 2.133 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.001242/0.001241, allocations: 92.12 kB / 261.8 MB, free: 1.473 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 9.859e-06/1.01e-05, allocations: 0 / 314.3 MB, free: 12.9 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 47.57 MB / 361.9 MB, free: 13.21 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3527/0.4562, allocations: 112.1 MB / 474 MB, free: 2.734 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005483/0.4569, allocations: 84.98 kB / 474 MB, free: 2.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 0.7049/1.162, allocations: 82.37 MB / 0.5434 GB, free: 91.53 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003895/1.162, allocations: 87.28 kB / 0.5435 GB, free: 91.52 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.01473/1.177, allocations: 3.3 MB / 0.5467 GB, free: 90.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/1.177, allocations: 11.25 kB / 0.5467 GB, free: 90.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006907/1.184, allocations: 0.7415 MB / 0.5474 GB, free: 90.04 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01301/1.197, allocations: 3.375 MB / 0.5507 GB, free: 89.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002466/1.197, allocations: 104.3 kB / 0.5508 GB, free: 89.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001311/1.199, allocations: 192.2 kB / 0.551 GB, free: 89.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01123/1.21, allocations: 3.199 MB / 0.5541 GB, free: 89.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/1.224, allocations: 3.712 MB / 0.5577 GB, free: 89.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001338/1.224, allocations: 8.719 kB / 0.5577 GB, free: 89.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005414/1.224, allocations: 3.062 kB / 0.5577 GB, free: 89.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001615/1.224, allocations: 153.2 kB / 0.5579 GB, free: 89.11 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03613/1.261, allocations: 12.93 MB / 0.5705 GB, free: 85.33 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003009/1.264, allocations: 1.126 MB / 0.5716 GB, free: 84.87 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003934/1.268, allocations: 1.363 MB / 0.573 GB, free: 84.37 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01241/1.28, allocations: 4.094 MB / 0.5769 GB, free: 82.13 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002348/1.283, allocations: 0.9717 MB / 0.5779 GB, free: 81.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 5.531e-06/1.283, allocations: 0 / 0.5779 GB, free: 81.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=168): time 0.01768/1.3, allocations: 5.632 MB / 0.5834 GB, free: 78.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.661e-05/1.3, allocations: 227.2 kB / 0.5836 GB, free: 78.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003358/1.304, allocations: 1.376 MB / 0.585 GB, free: 78.03 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003606/1.304, allocations: 25.7 kB / 0.585 GB, free: 78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001058/1.305, allocations: 1.138 MB / 0.5861 GB, free: 77.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007481/1.306, allocations: 0.5452 MB / 0.5866 GB, free: 76.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/1.306, allocations: 0 / 0.5866 GB, free: 76.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/1.306, allocations: 398.4 kB / 0.587 GB, free: 76.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001974/1.308, allocations: 0.7307 MB / 0.5877 GB, free: 76.03 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002728/1.311, allocations: 1.281 MB / 0.589 GB, free: 75.06 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003661/1.315, allocations: 1.02 MB / 0.59 GB, free: 74.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.392e-05/1.315, allocations: 4 kB / 0.59 GB, free: 74.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.007622/1.323, allocations: 2.423 MB / 0.5923 GB, free: 73.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/1.323, allocations: 4.906 kB / 0.5923 GB, free: 73.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.3e-05/1.323, allocations: 14.72 kB / 0.5924 GB, free: 73.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001131/1.324, allocations: 289.9 kB / 0.5926 GB, free: 73.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003583/1.327, allocations: 427.8 kB / 0.593 GB, free: 73.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007384/1.335, allocations: 5.586 MB / 0.5985 GB, free: 68.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001938/1.337, allocations: 61.97 kB / 0.5986 GB, free: 68.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002241/1.337, allocations: 81.17 kB / 0.5986 GB, free: 68.84 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (225): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004366/1.338, allocations: 81.2 kB / 0.5987 GB, free: 68.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006178/1.338, allocations: 187.7 kB / 0.5989 GB, free: 68.67 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007499/1.346, allocations: 2.418 MB / 0.6012 GB, free: 67.58 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.9e-05/1.346, allocations: 17.28 kB / 0.6013 GB, free: 67.58 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.258e-05/1.346, allocations: 12.75 kB / 0.6013 GB, free: 67.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.592e-05/1.346, allocations: 15.7 kB / 0.6013 GB, free: 67.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01447/1.36, allocations: 5.396 MB / 0.6066 GB, free: 64.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.574e-05/1.36, allocations: 5.531 kB / 0.6066 GB, free: 64.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00215/1.363, allocations: 223.5 kB / 0.6068 GB, free: 64.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00248/1.365, allocations: 452.6 kB / 0.6072 GB, free: 64.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003065/1.365, allocations: 19.8 kB / 0.6072 GB, free: 64.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01393/1.379, allocations: 9.556 MB / 0.6166 GB, free: 56.76 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/1.379, allocations: 3.906 kB / 0.6166 GB, free: 56.75 MB / 414.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009581/1.389, allocations: 3.509 MB / 0.62 GB, free: 54.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001656/1.391, allocations: 449.5 kB / 0.6204 GB, free: 54.3 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006422/1.391, allocations: 19.08 kB / 0.6204 GB, free: 54.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002006/1.393, allocations: 49.94 kB / 0.6205 GB, free: 54.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003191/1.394, allocations: 86.23 kB / 0.6206 GB, free: 54.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001425/1.394, allocations: 51.47 kB / 0.6206 GB, free: 54.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 0.002491/1.396, allocations: 1.036 MB / 0.6216 GB, free: 53.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003701/1.4, allocations: 0.566 MB / 0.6222 GB, free: 52.66 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 3,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001534/1.402, allocations: 0.5356 MB / 0.6227 GB, free: 52.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005489/1.407, allocations: 2.258 MB / 0.6249 GB, free: 50.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/1.407, allocations: 448 / 0.6249 GB, free: 50.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003755/1.411, allocations: 1.52 MB / 0.6264 GB, free: 48.65 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00366/1.415, allocations: 359.5 kB / 0.6267 GB, free: 48.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/1.431, allocations: 4.79 MB / 0.6314 GB, free: 44.03 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004496/1.435, allocations: 2.516 MB / 0.6339 GB, free: 42.02 MB / 414.1 MB Notification: Performance of SimCode: time 1.714e-06/1.435, allocations: 0 / 0.6339 GB, free: 42.02 MB / 414.1 MB Notification: Performance of Templates: time 0.3302/1.765, allocations: 105.9 MB / 0.7373 GB, free: 114.9 MB / 414.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_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_Conveyor/AIMC_Conveyor.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Thread is still alive. OMC died, but the thread is still running? This will end badly. The log-file of omc: Created ZeroMQ Server. Dumped server port in file: /tmp/openmodelica.hudson.port.f9bac9a4e0b04066a43c7a5b95fb08ad Limited backtrace at point of segmentation fault /lib/x86_64-linux-gnu/libc.so.6(+0x3f040)[0x7f4a68e1b040] /lib/x86_64-linux-gnu/libc.so.6(+0x16ef79)[0x7f4a68f4af79] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(omc_matlab4_read_all_vals+0x19d)[0x7f4a688582ee] /usr/bin/../lib/x86_64-linux-gnu/omc/libomcruntime.so(+0x6557e)[0x7f4a68af457e] /usr/bin/../lib/x86_64-linux-gnu/omc/libomcruntime.so(+0x62991)[0x7f4a68af1991] /usr/bin/../lib/x86_64-linux-gnu/omc/libomcruntime.so(SimulationResultsCmp_compareResults+0x22f)[0x7f4a68af00f8] /usr/bin/../lib/x86_64-linux-gnu/omc/libomcruntime.so(SimulationResults_diffSimulationResults+0x2f)[0x7f4a68af4d3e] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_SimulationResults_diffSimulationResults+0x37)[0x7f4a698005f1] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_CevalScriptBackend_cevalInteractiveFunctions4+0xbf4f)[0x7f4a69b58aa3] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_CevalScriptBackend_cevalInteractiveFunctions3+0x6b14)[0x7f4a69b6161f] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_CevalScript_cevalInteractiveFunctions2+0x5355)[0x7f4a6a0efcac] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_CevalScript_cevalInteractiveFunctions+0x25f)[0x7f4a6a0f2f1e] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_BackendInterface_cevalInteractiveFunctions+0x5d)[0x7f4a6a332dad] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_Ceval_cevalWork2+0x38f4)[0x7f4a6a325bfb] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_Ceval_cevalWork1+0xb7)[0x7f4a6a326659] Segmentation fault (core dumped) Aborted the command. Failed to read output from testmodel.py, exit status != 0: ['time', 'aimc.is[1]', 'aimc.is[2]', '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', 'mass.s', 'mass.v', 'vfController.x'] 1.7676298570004292 1.788352969 0.623908578 OMC died, but the thread is still running? This will end badly.