Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.001507/0.001507, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.096/2.096, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 90.75 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2998/0.2998, allocations: 43.49 MB / 353.5 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.182e-05/2.193e-05, allocations: 224 / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4142/0.4142, allocations: 58.85 MB / 477.2 MB, free: 5.156 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1888/0.6031, allocations: 100.1 MB / 0.5638 GB, free: 15.05 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003336/0.6035, allocations: 79.95 kB / 0.5639 GB, free: 14.98 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1552/0.7587, allocations: 38.65 MB / 0.6016 GB, free: 7.867 MB / 443.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.7588, allocations: 0 / 0.6016 GB, free: 7.867 MB / 443.1 MB Notification: Performance of Transformations before backend: time 6.954e-05/0.7589, allocations: 28 kB / 0.6016 GB, free: 7.84 MB / 443.1 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.00895/0.7678, allocations: 1.703 MB / 0.6033 GB, free: 6.09 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.7679, allocations: 8.031 kB / 0.6033 GB, free: 6.082 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01106/0.779, allocations: 1.048 MB / 0.6043 GB, free: 5.031 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002003/0.781, allocations: 0.6143 MB / 0.6049 GB, free: 4.371 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.7812, allocations: 48 kB / 0.605 GB, free: 4.324 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006431/0.7819, allocations: 79.91 kB / 0.605 GB, free: 4.246 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004881/0.7868, allocations: 1.423 MB / 0.6064 GB, free: 2.82 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005041/0.7919, allocations: 1.21 MB / 0.6076 GB, free: 1.566 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-05/0.792, allocations: 4 kB / 0.6076 GB, free: 1.562 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001721/0.7922, allocations: 4 kB / 0.6076 GB, free: 1.559 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.732e-05/0.7923, allocations: 36 kB / 0.6077 GB, free: 1.523 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01473/0.807, allocations: 5.387 MB / 0.6129 GB, free: 11.87 MB / 459.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003828/0.8109, allocations: 2.3 MB / 0.6152 GB, free: 9.301 MB / 459.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001574/0.8126, allocations: 0.5858 MB / 0.6157 GB, free: 8.711 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002948/0.8129, allocations: 114.3 kB / 0.6158 GB, free: 8.578 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.915e-05/0.8129, allocations: 47.81 kB / 0.6159 GB, free: 8.523 MB / 459.1 MB Notification: Performance of pre-optimization done (n=129): time 6.312e-06/0.813, allocations: 0 / 0.6159 GB, free: 8.523 MB / 459.1 MB Notification: Performance of matching and sorting (n=129): time 0.004711/0.8177, allocations: 1.326 MB / 0.6172 GB, free: 7.184 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.832e-05/0.8178, allocations: 90.42 kB / 0.6173 GB, free: 7.078 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006712/0.8185, allocations: 337 kB / 0.6176 GB, free: 6.746 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001597/0.8187, allocations: 25.7 kB / 0.6176 GB, free: 6.715 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004029/0.8191, allocations: 0.5134 MB / 0.6181 GB, free: 6.195 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005258/0.8196, allocations: 417.7 kB / 0.6185 GB, free: 5.781 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.259e-05/0.8197, allocations: 0 / 0.6185 GB, free: 5.781 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.8199, allocations: 358.8 kB / 0.6189 GB, free: 5.422 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/0.8211, allocations: 402.6 kB / 0.6192 GB, free: 5.031 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/0.8225, allocations: 0.6337 MB / 0.6199 GB, free: 4.293 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002789/0.8253, allocations: 0.6581 MB / 0.6205 GB, free: 3.641 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.969e-05/0.8254, allocations: 4 kB / 0.6205 GB, free: 3.637 MB / 459.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.005703/0.8311, allocations: 1.568 MB / 0.622 GB, free: 2.055 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.684e-05/0.8312, allocations: 8 kB / 0.622 GB, free: 2.047 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/0.8312, allocations: 16 kB / 0.6221 GB, free: 2.031 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00261/0.8339, allocations: 0.4888 MB / 0.6225 GB, free: 1.547 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/0.8356, allocations: 211.7 kB / 0.6227 GB, free: 1.34 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01069/0.8463, allocations: 4.134 MB / 0.6268 GB, free: 13.09 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.8478, allocations: 94.91 kB / 0.6269 GB, free: 12.99 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/0.848, allocations: 63.92 kB / 0.6269 GB, free: 12.93 MB / 475.1 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.0005083/0.8485, allocations: 173.2 kB / 0.6271 GB, free: 12.75 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004554/0.8531, allocations: 1.326 MB / 0.6284 GB, free: 11.41 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002594/0.8534, allocations: 79.06 kB / 0.6285 GB, free: 11.33 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005036/0.8584, allocations: 1.536 MB / 0.63 GB, free: 9.777 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.642e-05/0.8585, allocations: 12 kB / 0.63 GB, free: 9.766 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.8585, allocations: 3.984 kB / 0.63 GB, free: 9.762 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.573e-05/0.8585, allocations: 7.938 kB / 0.63 GB, free: 9.754 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008328/0.8669, allocations: 2.719 MB / 0.6326 GB, free: 6.988 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-05/0.867, allocations: 3.984 kB / 0.6326 GB, free: 6.984 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.8683, allocations: 139.8 kB / 0.6328 GB, free: 6.848 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0026/0.8709, allocations: 499.5 kB / 0.6333 GB, free: 6.355 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001919/0.8711, allocations: 7.984 kB / 0.6333 GB, free: 6.348 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01033/0.8815, allocations: 4.148 MB / 0.6373 GB, free: 2.082 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.553e-06/0.8815, allocations: 0 / 0.6373 GB, free: 2.082 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3364/1.218, allocations: 2.239 MB / 0.6395 GB, free: 121.2 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008222/1.219, allocations: 288.3 kB / 0.6398 GB, free: 121.1 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001643/1.219, allocations: 5.156 kB / 0.6398 GB, free: 121.1 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/1.22, allocations: 35.28 kB / 0.6398 GB, free: 121.1 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003536/1.22, allocations: 94.69 kB / 0.6399 GB, free: 121.1 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/1.221, allocations: 37.14 kB / 0.6399 GB, free: 121.1 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0004241/1.221, allocations: 247.9 kB / 0.6402 GB, free: 121.1 MB / 475.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.221, allocations: 0 / 0.6402 GB, free: 121.1 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.001896/1.223, allocations: 370.7 kB / 0.6405 GB, free: 121.1 MB / 475.1 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.006769/1.23, allocations: 2.98 MB / 0.6434 GB, free: 120.1 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.004884/1.235, allocations: 1.588 MB / 0.645 GB, free: 120 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 9.198e-06/1.235, allocations: 1.219 kB / 0.645 GB, free: 120 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00338/1.238, allocations: 1.05 MB / 0.646 GB, free: 119.8 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008518/1.239, allocations: 54.08 kB / 0.6461 GB, free: 119.8 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008522/1.248, allocations: 2.25 MB / 0.6483 GB, free: 119.3 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009939/1.249, allocations: 1.107 MB / 0.6493 GB, free: 118.6 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009525/1.25, allocations: 403.9 kB / 0.6497 GB, free: 118.6 MB / 475.1 MB Notification: Performance of SimCode: time 1.303e-06/1.25, allocations: 3.922 kB / 0.6497 GB, free: 118.6 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.156/4.405, allocations: 21.4 MB / 0.6706 GB, free: 117.5 MB / 475.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat