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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001739/0.001739, allocations: 177.2 kB / 8.005 MB, free: 1.07 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.875/1.875, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008444/0.0008444, allocations: 82.2 kB / 261.7 MB, free: 1.688 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.2405/0.2405, allocations: 43.49 MB / 353.2 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.062e-05/2.064e-05, allocations: 4 kB / 418.3 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1448, allocations: 58.86 MB / 477.2 MB, free: 1.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5264/0.6713, allocations: 100.1 MB / 0.5638 GB, free: 11.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.6716, allocations: 85.92 kB / 0.5639 GB, free: 11.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09036/0.762, allocations: 38.65 MB / 0.6016 GB, free: 12.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.762, allocations: 0 / 0.6016 GB, free: 12.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.355e-05/0.762, allocations: 23.98 kB / 0.6017 GB, free: 12.04 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.00501/0.7671, allocations: 1.692 MB / 0.6033 GB, free: 10.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.7671, allocations: 12.03 kB / 0.6033 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006934/0.7741, allocations: 1.052 MB / 0.6043 GB, free: 9.547 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/0.7754, allocations: 0.611 MB / 0.6049 GB, free: 9.039 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.092e-05/0.7755, allocations: 47.94 kB / 0.605 GB, free: 8.992 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.7757, allocations: 79.91 kB / 0.6051 GB, free: 8.914 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002448/0.7782, allocations: 1.422 MB / 0.6064 GB, free: 7.895 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002114/0.7803, allocations: 1.21 MB / 0.6076 GB, free: 6.641 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.279e-05/0.7803, allocations: 3.938 kB / 0.6076 GB, free: 6.637 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.7805, allocations: 4 kB / 0.6076 GB, free: 6.633 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.521e-05/0.7805, allocations: 36 kB / 0.6077 GB, free: 6.598 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008465/0.789, allocations: 5.392 MB / 0.6129 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002213/0.7912, allocations: 2.297 MB / 0.6152 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007564/0.792, allocations: 0.5869 MB / 0.6158 GB, free: 13.78 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000164/0.7922, allocations: 106.3 kB / 0.6159 GB, free: 13.66 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/0.7922, allocations: 47.88 kB / 0.6159 GB, free: 13.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=129): time 3.557e-06/0.7922, allocations: 4 kB / 0.6159 GB, free: 13.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=129): time 0.002689/0.7949, allocations: 1.318 MB / 0.6172 GB, free: 12.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.678e-05/0.795, allocations: 94.36 kB / 0.6173 GB, free: 12.16 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004081/0.7954, allocations: 341 kB / 0.6176 GB, free: 11.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.946e-05/0.7955, allocations: 25.7 kB / 0.6176 GB, free: 11.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003028/0.7958, allocations: 479.3 kB / 0.6181 GB, free: 11.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003262/0.7961, allocations: 417.8 kB / 0.6185 GB, free: 10.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.43e-05/0.7962, allocations: 0 / 0.6185 GB, free: 10.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.7964, allocations: 378.8 kB / 0.6188 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006031/0.797, allocations: 394.6 kB / 0.6192 GB, free: 10.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007918/0.7978, allocations: 0.6415 MB / 0.6199 GB, free: 9.391 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.7993, allocations: 0.6541 MB / 0.6205 GB, free: 8.742 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.7993, allocations: 4 kB / 0.6205 GB, free: 8.738 MB / 426.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003047/0.8024, allocations: 1.599 MB / 0.6221 GB, free: 7.125 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.8024, allocations: 11.44 kB / 0.6221 GB, free: 7.117 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/0.8024, allocations: 8 kB / 0.6221 GB, free: 7.109 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001477/0.8039, allocations: 0.4969 MB / 0.6226 GB, free: 6.617 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000827/0.8047, allocations: 207.7 kB / 0.6228 GB, free: 6.414 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006369/0.8111, allocations: 4.138 MB / 0.6268 GB, free: 2.156 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000993/0.8122, allocations: 102.8 kB / 0.6269 GB, free: 2.055 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.543e-05/0.8123, allocations: 48 kB / 0.6269 GB, free: 2.008 MB / 426.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.0003956/0.8127, allocations: 179.4 kB / 0.6271 GB, free: 1.824 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002584/0.8153, allocations: 1.322 MB / 0.6284 GB, free: 500 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.8154, allocations: 79.09 kB / 0.6285 GB, free: 420 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002892/0.8183, allocations: 1.536 MB / 0.63 GB, free: 14.86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.8183, allocations: 12 kB / 0.63 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.8184, allocations: 4 kB / 0.63 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.8184, allocations: 7.938 kB / 0.63 GB, free: 14.83 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004622/0.823, allocations: 2.715 MB / 0.6327 GB, free: 12.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.823, allocations: 0 / 0.6327 GB, free: 12.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000649/0.8237, allocations: 151.8 kB / 0.6328 GB, free: 11.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001313/0.825, allocations: 487.5 kB / 0.6333 GB, free: 11.44 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.705e-05/0.8251, allocations: 15.98 kB / 0.6333 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005949/0.8311, allocations: 4.144 MB / 0.6373 GB, free: 7.16 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.8311, allocations: 4 kB / 0.6373 GB, free: 7.156 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003859/0.835, allocations: 2.245 MB / 0.6395 GB, free: 4.875 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004996/0.8355, allocations: 287.7 kB / 0.6398 GB, free: 4.574 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.96e-05/0.8356, allocations: 0 / 0.6398 GB, free: 4.574 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005927/0.8362, allocations: 40.03 kB / 0.6398 GB, free: 4.535 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002401/0.8364, allocations: 93.17 kB / 0.6399 GB, free: 4.445 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-05/0.8365, allocations: 35.98 kB / 0.64 GB, free: 4.41 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002862/0.8368, allocations: 251 kB / 0.6402 GB, free: 4.164 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.8368, allocations: 0 / 0.6402 GB, free: 4.164 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00134/0.8382, allocations: 374.9 kB / 0.6406 GB, free: 3.797 MB / 442.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.004111/0.8423, allocations: 2.975 MB / 0.6435 GB, free: 0.7812 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003015/0.8454, allocations: 1.588 MB / 0.645 GB, free: 15.19 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.8454, allocations: 448 / 0.645 GB, free: 15.19 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001912/0.8473, allocations: 1.054 MB / 0.646 GB, free: 14.12 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006403/0.848, allocations: 54 kB / 0.6461 GB, free: 14.07 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005584/0.8536, allocations: 2.194 MB / 0.6482 GB, free: 11.83 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007789/0.8544, allocations: 1.111 MB / 0.6493 GB, free: 10.69 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0005425/0.8549, allocations: 102.7 kB / 0.6494 GB, free: 10.58 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005144/0.8554, allocations: 395.3 kB / 0.6498 GB, free: 10.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.663e-06/0.8554, allocations: 0 / 0.6498 GB, free: 10.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05122/0.9067, allocations: 22.04 MB / 0.6713 GB, free: 4.176 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/0.9069, allocations: 146.4 kB / 0.6715 GB, free: 3.984 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.854/3.761, allocations: 0 / 0.6715 GB, free: 3.984 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