Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.conf.json 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/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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) Running command: "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.007216/0.007217, allocations: 182 kB / 7.458 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.07052/0.07052, allocations: 8.713 MB / 16.57 MB, free: 440 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.558/2.558, allocations: 221.4 MB / 240.5 MB, free: 8.262 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001916/0.001916, allocations: 98.64 kB / 293.5 MB, free: 7.434 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2383/0.2403, allocations: 58.67 MB / 352.2 MB, free: 12.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.601/0.8414, allocations: 52.53 MB / 404.7 MB, free: 26.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2142/1.056, allocations: 81.33 MB / 486 MB, free: 9.527 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003285/1.056, allocations: 63.97 kB / 486.1 MB, free: 9.465 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0264/1.082, allocations: 5.327 MB / 491.4 MB, free: 4.105 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.461e-05/1.083, allocations: 8 kB / 491.4 MB, free: 4.098 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/1.083, allocations: 31.62 kB / 491.5 MB, free: 4.066 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000743/1.084, allocations: 259.8 kB / 491.7 MB, free: 3.773 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.111e-05/1.084, allocations: 15.91 kB / 491.7 MB, free: 3.758 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/1.084, allocations: 20 kB / 491.7 MB, free: 3.738 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007494/1.085, allocations: 165.2 kB / 491.9 MB, free: 3.574 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008062/1.085, allocations: 204.8 kB / 492.1 MB, free: 3.367 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.189e-05/1.085, allocations: 4 kB / 492.1 MB, free: 3.363 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.601e-05/1.085, allocations: 3.906 kB / 492.1 MB, free: 3.359 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/1.086, allocations: 12 kB / 492.1 MB, free: 3.348 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003561/1.089, allocations: 1.031 MB / 493.2 MB, free: 2.246 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003243/1.089, allocations: 87.12 kB / 493.2 MB, free: 2.156 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/1.09, allocations: 52.86 kB / 493.3 MB, free: 2.102 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.473e-05/1.09, allocations: 7.938 kB / 493.3 MB, free: 2.094 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.264e-05/1.09, allocations: 42.75 kB / 493.3 MB, free: 2.043 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 5.57e-06/1.09, allocations: 0 / 493.3 MB, free: 2.043 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.002162/1.092, allocations: 463.5 kB / 493.8 MB, free: 1.535 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.276e-05/1.092, allocations: 51.41 kB / 493.8 MB, free: 1.473 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004534/1.093, allocations: 167.5 kB / 494 MB, free: 1.297 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.442e-05/1.093, allocations: 25.7 kB / 494 MB, free: 1.266 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002288/1.093, allocations: 175.9 kB / 494.2 MB, free: 1.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.532e-05/1.093, allocations: 55.2 kB / 494.3 MB, free: 1.035 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.894e-05/1.093, allocations: 0 / 494.3 MB, free: 1.035 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000291/1.093, allocations: 330.7 kB / 494.6 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/1.094, allocations: 40 kB / 494.6 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/1.094, allocations: 81.7 kB / 494.7 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/1.094, allocations: 51.98 kB / 494.8 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/1.094, allocations: 4 kB / 494.8 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006864/1.095, allocations: 184.1 kB / 494.9 MB, free: 336 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.798e-05/1.095, allocations: 4 kB / 494.9 MB, free: 332 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/1.095, allocations: 0 / 494.9 MB, free: 332 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003172/1.095, allocations: 32.91 kB / 495 MB, free: 296 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005027/1.096, allocations: 43.98 kB / 495 MB, free: 252 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002526/1.098, allocations: 1.221 MB / 496.2 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002973/1.099, allocations: 11.98 kB / 496.3 MB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/1.099, allocations: 8.156 kB / 496.3 MB, free: 14.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001951/1.099, allocations: 105 kB / 496.4 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/1.099, allocations: 19.72 kB / 496.4 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.414e-05/1.099, allocations: 21.58 kB / 496.4 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/1.099, allocations: 0 / 496.4 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-05/1.099, allocations: 0 / 496.4 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/1.099, allocations: 3.938 kB / 496.4 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/1.101, allocations: 0.5209 MB / 496.9 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/1.101, allocations: 4 kB / 496.9 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004247/1.101, allocations: 39.98 kB / 497 MB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001736/1.101, allocations: 16.84 kB / 497 MB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.44e-05/1.101, allocations: 12.06 kB / 497 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/1.103, allocations: 1.224 MB / 498.2 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/1.103, allocations: 0 / 498.2 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000652/1.104, allocations: 340 kB / 498.6 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001663/1.105, allocations: 0.7672 MB / 499.3 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/1.106, allocations: 92.91 kB / 499.4 MB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.686e-05/1.106, allocations: 8 kB / 499.4 MB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003129/1.106, allocations: 11.98 kB / 499.4 MB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.874e-05/1.106, allocations: 7.984 kB / 499.4 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.689e-05/1.106, allocations: 8 kB / 499.4 MB, free: 11.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002459/1.106, allocations: 128.3 kB / 499.6 MB, free: 11.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002041/1.108, allocations: 52 kB / 499.6 MB, free: 11.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,load.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005069/1.109, allocations: 99.19 kB / 499.7 MB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001704/1.111, allocations: 221.6 kB / 499.9 MB, free: 10.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/1.111, allocations: 0 / 499.9 MB, free: 10.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009785/1.112, allocations: 170.2 kB / 0.4884 GB, free: 10.74 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001382/1.113, allocations: 28.02 kB / 0.4884 GB, free: 10.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00417/1.117, allocations: 485.2 kB / 0.4889 GB, free: 10.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00192/1.119, allocations: 0.7897 MB / 0.4896 GB, free: 9.391 MB / 378.7 MB Notification: Performance of SimCode: time 1.462e-06/1.119, allocations: 4 kB / 0.4896 GB, free: 9.387 MB / 378.7 MB (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_TestDCPMMachine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)