Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",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.0009671/0.0009671, allocations: 183.4 kB / 8.135 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.139/1.139, allocations: 221.4 MB / 229.9 MB, free: 3.074 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008739/0.0008739, allocations: 90.34 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1025/0.1034, allocations: 55.81 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.3083, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08311/0.3915, allocations: 79.57 MB / 466.6 MB, free: 7.207 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001824/0.3917, allocations: 71.89 kB / 466.6 MB, free: 7.137 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0169/0.4086, allocations: 6.602 MB / 473.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.4087, allocations: 8.219 kB / 473.3 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.032e-05/0.4088, allocations: 39.53 kB / 473.3 MB, free: 464 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003003/0.4091, allocations: 271.3 kB / 473.6 MB, free: 148 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.546e-05/0.4092, allocations: 68.05 kB / 473.6 MB, free: 68 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.034e-05/0.4092, allocations: 20 kB / 473.6 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003848/0.4096, allocations: 177.4 kB / 473.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004196/0.41, allocations: 281.5 kB / 474.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.41, allocations: 0 / 474.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.12e-05/0.4101, allocations: 9.047 kB / 474.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.4101, allocations: 8 kB / 474.1 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001718/0.4118, allocations: 1.304 MB / 475.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.412, allocations: 98.52 kB / 475.5 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.4121, allocations: 76.83 kB / 475.6 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.4122, allocations: 16.02 kB / 475.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001788/0.4123, allocations: 132 kB / 475.7 MB, free: 13.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.423e-06/0.4124, allocations: 0 / 475.7 MB, free: 13.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005693/0.4129, allocations: 209.1 kB / 475.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.413, allocations: 106.8 kB / 476 MB, free: 13.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.4132, allocations: 200 kB / 476.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.783e-05/0.4132, allocations: 25.7 kB / 476.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.4133, allocations: 184.8 kB / 476.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.831e-05/0.4134, allocations: 67.02 kB / 476.5 MB, free: 13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.134e-05/0.4134, allocations: 7.938 kB / 476.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.4136, allocations: 334.8 kB / 476.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.4137, allocations: 60 kB / 476.9 MB, free: 12.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.4139, allocations: 149.1 kB / 477 MB, free: 12.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.414, allocations: 73.11 kB / 477.1 MB, free: 12.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.698e-06/0.414, allocations: 4 kB / 477.1 MB, free: 12.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005973/0.4146, allocations: 282 kB / 477.4 MB, free: 12.06 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.4147, allocations: 11.94 kB / 477.4 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.4147, allocations: 7.938 kB / 477.4 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002645/0.415, allocations: 56.81 kB / 477.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.4152, allocations: 67.84 kB / 477.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/0.4163, allocations: 1.258 MB / 478.8 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002534/0.4166, allocations: 39.67 kB / 478.8 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/0.4167, allocations: 20.09 kB / 478.9 MB, free: 10.49 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.4168, allocations: 121.6 kB / 479 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/0.4169, allocations: 23.72 kB / 479 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.708e-05/0.4169, allocations: 22.06 kB / 479 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.4169, allocations: 4 kB / 479 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.4169, allocations: 0 / 479 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.4169, allocations: 4.484 kB / 479 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002762/0.4172, allocations: 281.9 kB / 479.3 MB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.4172, allocations: 4 kB / 479.3 MB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.4174, allocations: 48.72 kB / 479.3 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001864/0.4176, allocations: 52.81 kB / 479.4 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.4177, allocations: 4 kB / 479.4 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009233/0.4186, allocations: 1.251 MB / 480.7 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4186, allocations: 0 / 480.7 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00059/0.4192, allocations: 316.2 kB / 481 MB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007874/0.42, allocations: 0.7593 MB / 481.7 MB, free: 7.418 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.559e-05/0.4201, allocations: 116.7 kB / 481.8 MB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.159e-05/0.4202, allocations: 4 kB / 481.8 MB, free: 7.281 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.4204, allocations: 24.05 kB / 481.9 MB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.867e-05/0.4204, allocations: 15.97 kB / 481.9 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.4205, allocations: 8 kB / 481.9 MB, free: 7.234 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001092/0.4206, allocations: 152.5 kB / 482 MB, free: 7.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008814/0.4215, allocations: 83.69 kB / 482.1 MB, free: 7.008 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * 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: 1 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001414/0.4216, allocations: 115.2 kB / 482.2 MB, free: 6.887 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004507/0.4221, allocations: 266.1 kB / 482.5 MB, free: 6.617 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4221, allocations: 3.938 kB / 482.5 MB, free: 6.613 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002347/0.4223, allocations: 185.6 kB / 482.7 MB, free: 6.422 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.4225, allocations: 24.28 kB / 482.7 MB, free: 6.395 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.4236, allocations: 450.4 kB / 483.1 MB, free: 5.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003602/0.424, allocations: 0.8058 MB / 483.9 MB, free: 5.098 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.424, allocations: 0 / 483.9 MB, free: 5.098 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat