Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009332/0.0009332, allocations: 196 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 226.5 MB / 244.7 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006966/0.0006966, allocations: 100.5 kB / 296.7 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002162/0.0002162, allocations: 7.938 kB / 356.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2041, allocations: 51.3 MB / 408.1 MB, free: 27.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.001866/0.206, allocations: 1.885 MB / 410 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.2073, allocations: 1.158 MB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.595e-05/0.2074, allocations: 4 kB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002622/0.2076, allocations: 83.69 kB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002524/0.2079, allocations: 137 kB / 411.4 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.2082, allocations: 121.3 kB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002065/0.2084, allocations: 270.8 kB / 411.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.2085, allocations: 71.19 kB / 411.8 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.2086, allocations: 99.61 kB / 411.9 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.2088, allocations: 108.4 kB / 412 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.325e-05/0.2088, allocations: 12 kB / 412.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.972e-05/0.2089, allocations: 36.59 kB / 412.1 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.17e-05/0.209, allocations: 47.81 kB / 412.1 MB, free: 23.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.016e-05/0.209, allocations: 125.8 kB / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001724/0.2092, allocations: 215.1 kB / 412.5 MB, free: 23.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2092, allocations: 0 / 412.5 MB, free: 23.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2092, allocations: 0 / 412.5 MB, free: 23.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.2092, allocations: 3.938 kB / 412.5 MB, free: 23.22 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.000539/0.2098, allocations: 0.504 MB / 413 MB, free: 22.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.2098, allocations: 9.188 kB / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.242e-05/0.2099, allocations: 54.72 kB / 413 MB, free: 22.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.21, allocations: 28.66 kB / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002056/0.2103, allocations: 267.4 kB / 413.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.2103, allocations: 16.36 kB / 413.3 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.961e-05/0.2103, allocations: 23.94 kB / 413.4 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002529/0.2106, allocations: 153.4 kB / 413.5 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.2106, allocations: 3.938 kB / 413.5 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.2106, allocations: 8 kB / 413.5 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.2106, allocations: 4 kB / 413.5 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001945/0.2108, allocations: 119.9 kB / 413.6 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006263/0.2115, allocations: 0.5583 MB / 414.2 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.2117, allocations: 177.6 kB / 414.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.2118, allocations: 84.83 kB / 414.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.2119, allocations: 7.984 kB / 414.5 MB, free: 21.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001961/0.2121, allocations: 113.6 kB / 414.6 MB, free: 20.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.383e-06/0.2121, allocations: 0 / 414.6 MB, free: 20.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003849/0.2125, allocations: 233.6 kB / 414.8 MB, free: 20.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.087e-05/0.2125, allocations: 55.41 kB / 414.9 MB, free: 20.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.2127, allocations: 257 kB / 415.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.2127, allocations: 37.69 kB / 415.2 MB, free: 20.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.78e-05/0.2128, allocations: 140.3 kB / 415.3 MB, free: 20.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.627e-05/0.2128, allocations: 67.11 kB / 415.4 MB, free: 20.13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.857e-06/0.2128, allocations: 4 kB / 415.4 MB, free: 20.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.787e-05/0.2129, allocations: 334.8 kB / 415.7 MB, free: 19.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.965e-05/0.213, allocations: 51.97 kB / 415.7 MB, free: 19.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.57e-05/0.2131, allocations: 87.34 kB / 415.8 MB, free: 19.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001937/0.2133, allocations: 150.1 kB / 416 MB, free: 19.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2133, allocations: 0 / 416 MB, free: 19.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002634/0.2136, allocations: 203.6 kB / 416.2 MB, free: 19.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.2136, allocations: 15.92 kB / 416.2 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.2136, allocations: 0 / 416.2 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.2136, allocations: 0 / 416.2 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/0.2138, allocations: 51.92 kB / 416.2 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.2138, allocations: 0 / 416.2 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.2139, allocations: 27.73 kB / 416.3 MB, free: 19.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.214, allocations: 8 kB / 416.3 MB, free: 19.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.809e-05/0.214, allocations: 160.2 kB / 416.4 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.2141, allocations: 19.72 kB / 416.4 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.445e-05/0.2141, allocations: 26.19 kB / 416.5 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.2141, allocations: 7.938 kB / 416.5 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2142, allocations: 4 kB / 416.5 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2142, allocations: 3.984 kB / 416.5 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.2143, allocations: 277.5 kB / 416.8 MB, free: 18.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2144, allocations: 4 kB / 416.8 MB, free: 18.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.2145, allocations: 43.8 kB / 416.8 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2145, allocations: 0 / 416.8 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.2145, allocations: 11.98 kB / 416.8 MB, free: 18.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.2146, allocations: 7.938 kB / 416.8 MB, free: 18.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2146, allocations: 0 / 416.8 MB, free: 18.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003674/0.2149, allocations: 279.8 kB / 417.1 MB, free: 18.28 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.953e-05/0.215, allocations: 100.8 kB / 417.2 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.009e-05/0.215, allocations: 11.94 kB / 417.2 MB, free: 18.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.168e-05/0.2151, allocations: 12 kB / 417.2 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.2152, allocations: 15.97 kB / 417.2 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.2152, allocations: 8 kB / 417.2 MB, free: 18.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001164/0.2153, allocations: 188.5 kB / 417.4 MB, free: 17.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2153, allocations: 0 / 417.4 MB, free: 17.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002281/0.2155, allocations: 63.83 kB / 417.5 MB, free: 17.87 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001125/0.2167, allocations: 1.111 MB / 418.6 MB, free: 16.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002293/0.2169, allocations: 143 kB / 418.7 MB, free: 16.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.2169, allocations: 0 / 418.7 MB, free: 16.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.217, allocations: 75.91 kB / 418.8 MB, free: 16.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.2173, allocations: 50.16 kB / 418.9 MB, free: 16.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.2189, allocations: 1.476 MB / 420.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.219, allocations: 0.756 MB / 421.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.294e-05/0.2191, allocations: 75.41 kB / 421.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2191, allocations: 0 / 421.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.003/3.222, allocations: 3.831 MB / 425 MB, free: 10.38 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.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.8b9b16db0ded441a9b3da486a5ae4d9b Limited backtrace at point of segmentation fault /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7ff5b6a08210] /lib/x86_64-linux-gnu/libc.so.6(+0x18e6c3)[0x7ff5b6b506c3] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(omc_matlab4_read_all_vals+0x19d)[0x7ff5b683e81b] /usr/bin/../lib/x86_64-linux-gnu/omc/libomcruntime.so(+0x64e9a)[0x7ff5b68dce9a] /usr/bin/../lib/x86_64-linux-gnu/omc/libomcruntime.so(+0x62163)[0x7ff5b68da163] /usr/bin/../lib/x86_64-linux-gnu/omc/libomcruntime.so(SimulationResultsCmp_compareResults+0x21e)[0x7ff5b68d88e8] /usr/bin/../lib/x86_64-linux-gnu/omc/libomcruntime.so(SimulationResults_diffSimulationResults+0x2b)[0x7ff5b68dd561] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_SimulationResults_diffSimulationResults+0x3b)[0x7ff5b71f565c] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_CevalScriptBackend_cevalInteractiveFunctions4+0xa8e4)[0x7ff5b756ff65] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_CevalScriptBackend_cevalInteractiveFunctions3+0x4e3f)[0x7ff5b7576e01] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_CevalScript_cevalInteractiveFunctions2+0x420d)[0x7ff5b7adec5e] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_CevalScript_cevalInteractiveFunctions+0x1f7)[0x7ff5b7ae27fa] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_BackendInterface_cevalInteractiveFunctions+0x5d)[0x7ff5b7d1cd6b] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_Ceval_cevalWork2+0x31a8)[0x7ff5b7d1053b] /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(omc_Ceval_cevalWork1+0xaf)[0x7ff5b7d10e57] Segmentation fault (core dumped) Aborted the command. Failed to read output from testmodel.py, exit status != 0: ['time', 'core.T', 'winding.T'] 3.22931572701782 3.244326488 3.033095243 OMC died, but the thread is still running? This will end badly.