Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.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.MultiPhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_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.002266/0.002266, allocations: 181 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.068/2.068, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001201/0.001201, allocations: 98.61 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3657/0.3657, allocations: 43.5 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.866e-05/2.883e-05, allocations: 0 / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1239, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5426/0.6666, allocations: 113.1 MB / 0.5834 GB, free: 6.551 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/0.667, allocations: 84.73 kB / 0.5834 GB, free: 6.508 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.207/2.874, allocations: 468.9 MB / 1.041 GB, free: 33.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.755e-06/2.874, allocations: 3.562 kB / 1.041 GB, free: 33.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001125/2.876, allocations: 302.9 kB / 1.042 GB, free: 33.51 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3927 * Number of variables: 3927 Notification: Performance of Generate backend data structure: time 0.07311/2.949, allocations: 13.53 MB / 1.055 GB, free: 20.03 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/2.949, allocations: 12.03 kB / 1.055 GB, free: 20.02 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01007/2.959, allocations: 2.003 MB / 1.057 GB, free: 18.02 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06641/3.025, allocations: 8.527 MB / 1.065 GB, free: 9.531 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02787/3.053, allocations: 8.81 MB / 1.074 GB, free: 0.6914 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001896/3.055, allocations: 1.031 MB / 1.075 GB, free: 15.67 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007453/3.063, allocations: 1.313 MB / 1.076 GB, free: 14.37 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.9603/4.023, allocations: 24.62 MB / 1.1 GB, free: 41.66 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001095/4.024, allocations: 16.45 kB / 1.1 GB, free: 41.66 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008662/4.033, allocations: 0.5659 MB / 1.101 GB, free: 41.66 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002702/4.036, allocations: 0.9256 MB / 1.102 GB, free: 41.63 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1039/4.14, allocations: 22.05 MB / 1.123 GB, free: 41.51 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2286/4.368, allocations: 76.39 MB / 1.198 GB, free: 20.82 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03964/4.408, allocations: 20.87 MB / 1.218 GB, free: 9.66 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02859/4.437, allocations: 11.49 MB / 1.229 GB, free: 4.836 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1298/4.567, allocations: 37.87 MB / 1.266 GB, free: 12.91 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001742/4.567, allocations: 129.9 kB / 1.266 GB, free: 12.77 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=1188): time 1.717e-05/4.567, allocations: 0 / 1.266 GB, free: 12.77 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1188): time 0.08493/4.652, allocations: 22.82 MB / 1.289 GB, free: 11.03 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001936/4.652, allocations: 172.5 kB / 1.289 GB, free: 10.84 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009424/4.661, allocations: 3.058 MB / 1.292 GB, free: 8.195 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.002868/4.664, allocations: 180.3 kB / 1.292 GB, free: 8.016 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.004486/4.669, allocations: 4.308 MB / 1.296 GB, free: 4.18 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.008135/4.677, allocations: 3.862 MB / 1.3 GB, free: 0.6875 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003058/4.68, allocations: 179.3 kB / 1.3 GB, free: 0.5156 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.4392/5.119, allocations: 0.754 MB / 1.301 GB, free: 95.55 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02227/5.142, allocations: 7.905 MB / 1.309 GB, free: 95.53 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02623/5.168, allocations: 9.392 MB / 1.318 GB, free: 94.25 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02579/5.194, allocations: 9.258 MB / 1.327 GB, free: 94.1 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.709e-05/5.194, allocations: 7.719 kB / 1.327 GB, free: 94.1 MB / 0.5574 GB Notification: Performance of matching and sorting (n=1360) (initialization): time 0.06843/5.262, allocations: 23.37 MB / 1.35 GB, free: 93.76 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 6.799e-05/5.263, allocations: 22.84 kB / 1.35 GB, free: 93.76 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001274/5.263, allocations: 37.88 kB / 1.35 GB, free: 93.76 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03454/5.297, allocations: 10.27 MB / 1.36 GB, free: 93.41 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01158/5.309, allocations: 1.347 MB / 1.361 GB, free: 93.41 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04828/5.357, allocations: 19.47 MB / 1.38 GB, free: 90.23 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01386/5.371, allocations: 1.116 MB / 1.381 GB, free: 90.03 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003458/5.375, allocations: 387.3 kB / 1.382 GB, free: 89.95 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (695): * Single equations (assignments): 628 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 63 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,99 312} Notification: Performance of prepare postOptimizeDAE: time 0.006481/5.381, allocations: 0.5489 MB / 1.382 GB, free: 89.58 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00417/5.385, allocations: 0.6057 MB / 1.383 GB, free: 89.24 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0757/5.461, allocations: 24.34 MB / 1.406 GB, free: 79.53 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006261/5.462, allocations: 331.6 kB / 1.407 GB, free: 79.35 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.51e-05/5.462, allocations: 3.75 kB / 1.407 GB, free: 79.35 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002242/5.462, allocations: 48.62 kB / 1.407 GB, free: 79.35 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1312/5.593, allocations: 43.33 MB / 1.449 GB, free: 48.27 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002038/5.594, allocations: 0 / 1.449 GB, free: 48.27 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01011/5.604, allocations: 1.083 MB / 1.45 GB, free: 47.45 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03492/5.639, allocations: 10.24 MB / 1.46 GB, free: 38.91 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003442/5.642, allocations: 249 kB / 1.46 GB, free: 38.7 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04794/5.69, allocations: 19.4 MB / 1.479 GB, free: 21.65 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/5.69, allocations: 3.609 kB / 1.479 GB, free: 21.65 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5839/6.274, allocations: 38.65 MB / 1.517 GB, free: 89.2 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01346/6.288, allocations: 2.692 MB / 1.52 GB, free: 89.1 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004871/6.293, allocations: 156.5 kB / 1.52 GB, free: 89.1 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0114/6.304, allocations: 0.5256 MB / 1.52 GB, free: 89.1 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004802/6.309, allocations: 0.8909 MB / 1.521 GB, free: 89.09 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003111/6.312, allocations: 307.5 kB / 1.522 GB, free: 89.09 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.006616/6.319, allocations: 2.336 MB / 1.524 GB, free: 88.93 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.152e-06/6.319, allocations: 0.9062 kB / 1.524 GB, free: 88.93 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01874/6.338, allocations: 3.48 MB / 1.527 GB, free: 88.49 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealClosingSwitch.idealClosingSwitch[1].pin_p.reference.gamma) * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (565): * Single equations (assignments): 498 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 63 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,99 312} Notification: Performance of Backend phase and start with SimCode phase: time 0.1042/6.442, allocations: 36.74 MB / 1.563 GB, free: 86.9 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.0583/6.5, allocations: 19.83 MB / 1.582 GB, free: 86.53 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/6.5, allocations: 0 / 1.582 GB, free: 86.53 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.03547/6.536, allocations: 10.95 MB / 1.593 GB, free: 86.12 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0132/6.549, allocations: 1.158 MB / 1.594 GB, free: 86.07 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1061/6.655, allocations: 32.25 MB / 1.626 GB, free: 74.28 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02241/6.678, allocations: 9.409 MB / 1.635 GB, free: 69.61 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01351/6.691, allocations: 4.835 MB / 1.64 GB, free: 65.11 MB / 0.5574 GB Notification: Performance of SimCode: time 3.316e-06/6.691, allocations: 0 / 1.64 GB, free: 65.11 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.31/14, allocations: 0.5311 GB / 2.171 GB, free: 104.9 MB / 0.6199 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal_res.mat does not exist to compare? outputFormat=mat