Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",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 3.2.3+maint.om/package.mo): time 0.00181/0.00181, allocations: 186.9 kB / 7.799 MB, free: 2.496 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.687/1.687, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009751/0.0009754, allocations: 87.3 kB / 261.4 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2058/0.2058, allocations: 43.48 MB / 352.8 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2407/0.4466, allocations: 64.98 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3784/0.825, allocations: 58.84 MB / 476.7 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1521/0.9772, allocations: 100.1 MB / 0.5632 GB, free: 14.82 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.9775, allocations: 75.95 kB / 0.5633 GB, free: 14.75 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: 349 * Number of variables: 349 Notification: Performance of Generate backend data structure: time 0.1017/1.079, allocations: 40.06 MB / 0.6024 GB, free: 6.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/1.079, allocations: 8 kB / 0.6024 GB, free: 6.172 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008277/1.088, allocations: 1.134 MB / 0.6035 GB, free: 5.035 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001833/1.089, allocations: 0.6027 MB / 0.6041 GB, free: 4.391 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/1.09, allocations: 48 kB / 0.6041 GB, free: 4.344 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004547/1.09, allocations: 80 kB / 0.6042 GB, free: 4.266 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003612/1.094, allocations: 1.427 MB / 0.6056 GB, free: 2.836 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002995/1.097, allocations: 1.202 MB / 0.6068 GB, free: 1.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.069e-05/1.097, allocations: 11.83 kB / 0.6068 GB, free: 1.578 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001339/1.097, allocations: 0 / 0.6068 GB, free: 1.578 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.918e-05/1.097, allocations: 36 kB / 0.6068 GB, free: 1.543 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01041/1.107, allocations: 5.881 MB / 0.6126 GB, free: 11.28 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/1.109, allocations: 0.9469 MB / 0.6135 GB, free: 10.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000967/1.11, allocations: 0.5761 MB / 0.6141 GB, free: 9.723 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001885/1.11, allocations: 110 kB / 0.6142 GB, free: 9.598 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.598e-05/1.11, allocations: 51.56 kB / 0.6142 GB, free: 9.539 MB / 458.7 MB Notification: Performance of pre-optimization done (n=129): time 4.979e-06/1.11, allocations: 0 / 0.6142 GB, free: 9.539 MB / 458.7 MB Notification: Performance of matching and sorting (n=129): time 0.003084/1.113, allocations: 1.233 MB / 0.6154 GB, free: 8.297 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.64e-05/1.113, allocations: 90.11 kB / 0.6155 GB, free: 8.191 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005511/1.114, allocations: 340.9 kB / 0.6158 GB, free: 7.852 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.604e-05/1.114, allocations: 29.7 kB / 0.6159 GB, free: 7.816 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/1.114, allocations: 439.3 kB / 0.6163 GB, free: 7.379 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003734/1.115, allocations: 417.8 kB / 0.6167 GB, free: 6.965 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.878e-05/1.115, allocations: 0 / 0.6167 GB, free: 6.965 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001887/1.115, allocations: 382.7 kB / 0.617 GB, free: 6.582 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007458/1.116, allocations: 414.6 kB / 0.6174 GB, free: 6.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009633/1.117, allocations: 0.6493 MB / 0.6181 GB, free: 5.422 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001367/1.118, allocations: 0.5099 MB / 0.6186 GB, free: 4.918 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.929e-06/1.118, allocations: 7.984 kB / 0.6186 GB, free: 4.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003179/1.121, allocations: 1.468 MB / 0.62 GB, free: 3.426 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/1.121, allocations: 4 kB / 0.62 GB, free: 3.422 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.038e-05/1.121, allocations: 8 kB / 0.62 GB, free: 3.414 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001762/1.123, allocations: 0.497 MB / 0.6205 GB, free: 2.922 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009557/1.124, allocations: 203.7 kB / 0.6207 GB, free: 2.723 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007361/1.132, allocations: 3.961 MB / 0.6246 GB, free: 14.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009537/1.132, allocations: 98.8 kB / 0.6247 GB, free: 14.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001942/1.133, allocations: 47.98 kB / 0.6247 GB, free: 14.5 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: impedance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real impedance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real admittance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real variableAdmittance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real idealIntermediateSwitch.s4.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealOpeningSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s4.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealOpeningSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealClosingSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealCommutingSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealClosingSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 115 * 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 {20 30} Notification: Performance of prepare postOptimizeDAE: time 0.0004652/1.133, allocations: 186.9 kB / 0.6249 GB, free: 14.31 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003087/1.133, allocations: 79.06 kB / 0.625 GB, free: 14.23 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003771/1.137, allocations: 1.471 MB / 0.6264 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.574e-05/1.137, allocations: 15.94 kB / 0.6264 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.106e-05/1.137, allocations: 7.984 kB / 0.6264 GB, free: 12.72 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-05/1.137, allocations: 7.969 kB / 0.6264 GB, free: 12.71 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006355/1.144, allocations: 2.619 MB / 0.629 GB, free: 10.04 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/1.144, allocations: 4 kB / 0.629 GB, free: 10.03 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007758/1.145, allocations: 155.7 kB / 0.6291 GB, free: 9.879 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00165/1.146, allocations: 498.9 kB / 0.6296 GB, free: 9.391 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.55e-05/1.146, allocations: 4 kB / 0.6296 GB, free: 9.387 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0073/1.154, allocations: 3.969 MB / 0.6335 GB, free: 5.293 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/1.154, allocations: 4 kB / 0.6335 GB, free: 5.289 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004774/1.159, allocations: 2.178 MB / 0.6356 GB, free: 3.078 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2251/1.384, allocations: 3.221 MB / 0.6388 GB, free: 176.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006374/1.384, allocations: 290.4 kB / 0.639 GB, free: 176.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/1.384, allocations: 0 / 0.639 GB, free: 176.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007068/1.385, allocations: 36.66 kB / 0.6391 GB, free: 176.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/1.385, allocations: 70.89 kB / 0.6391 GB, free: 176.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.806e-05/1.385, allocations: 39.31 kB / 0.6392 GB, free: 176.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0002502/1.386, allocations: 246.1 kB / 0.6394 GB, free: 176.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001778/1.388, allocations: 366.1 kB / 0.6398 GB, free: 176.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (idealClosingSwitch.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * 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 {20 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.000339/1.388, allocations: 156.8 kB / 0.6399 GB, free: 176.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003091/1.391, allocations: 1.524 MB / 0.6414 GB, free: 176.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/1.391, allocations: 0 / 0.6414 GB, free: 176.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001839/1.393, allocations: 0.9772 MB / 0.6424 GB, free: 176.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004922/1.393, allocations: 55.38 kB / 0.6424 GB, free: 176.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004809/1.398, allocations: 2.111 MB / 0.6445 GB, free: 175.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007726/1.399, allocations: 1.147 MB / 0.6456 GB, free: 175 MB / 474.7 MB Notification: Performance of SimCode: time 7.72e-07/1.399, allocations: 0 / 0.6456 GB, free: 175 MB / 474.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat