Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008725/0.0008725, allocations: 90.06 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1846/0.1846, allocations: 45.15 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.425e-05/3.427e-05, allocations: 0 / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.133, allocations: 63.24 MB / 0.5115 GB, free: 6.703 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4104/0.5434, allocations: 103.6 MB / 0.6126 GB, free: 6.414 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.5437, allocations: 81.2 kB / 0.6127 GB, free: 6.371 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08867/0.6324, allocations: 40.47 MB / 0.6522 GB, free: 4.934 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.6324, allocations: 4 kB / 0.6522 GB, free: 4.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.636e-05/0.6325, allocations: 20 kB / 0.6522 GB, free: 4.91 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.00543/0.6379, allocations: 1.691 MB / 0.6539 GB, free: 3.348 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.638, allocations: 11.97 kB / 0.6539 GB, free: 3.336 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003452/0.6383, allocations: 195.1 kB / 0.6541 GB, free: 3.219 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006377/0.6447, allocations: 0.9813 MB / 0.655 GB, free: 2.336 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.646, allocations: 0.5939 MB / 0.6556 GB, free: 1.844 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.272e-05/0.6461, allocations: 99.08 kB / 0.6557 GB, free: 1.785 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002908/0.6464, allocations: 135.4 kB / 0.6558 GB, free: 1.695 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002531/0.649, allocations: 1.419 MB / 0.6572 GB, free: 0.7461 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.251e-05/0.649, allocations: 4 kB / 0.6572 GB, free: 0.7422 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/0.6492, allocations: 54.62 kB / 0.6573 GB, free: 0.7305 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.443e-05/0.6492, allocations: 35.98 kB / 0.6573 GB, free: 0.6953 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002408/0.6516, allocations: 1.44 MB / 0.6587 GB, free: 15.29 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008317/0.6599, allocations: 5.702 MB / 0.6643 GB, free: 9.262 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002182/0.6622, allocations: 2.158 MB / 0.6664 GB, free: 6.867 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008433/0.663, allocations: 0.6126 MB / 0.667 GB, free: 6.254 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002072/0.6632, allocations: 187.2 kB / 0.6672 GB, free: 6.031 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.661e-05/0.6633, allocations: 47.5 kB / 0.6672 GB, free: 5.977 MB / 458.7 MB Notification: Performance of pre-optimization done (n=127): time 3.366e-06/0.6633, allocations: 0 / 0.6672 GB, free: 5.977 MB / 458.7 MB Notification: Performance of matching and sorting (n=127): time 0.002034/0.6653, allocations: 1.229 MB / 0.6684 GB, free: 4.734 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.6654, allocations: 102.1 kB / 0.6685 GB, free: 4.613 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004433/0.6659, allocations: 403.7 kB / 0.6689 GB, free: 4.211 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.336e-05/0.6659, allocations: 45.7 kB / 0.6689 GB, free: 4.16 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002506/0.6662, allocations: 459.6 kB / 0.6694 GB, free: 3.703 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002904/0.6665, allocations: 413.9 kB / 0.6698 GB, free: 3.293 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.873e-05/0.6666, allocations: 28 kB / 0.6698 GB, free: 3.266 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.6667, allocations: 378.8 kB / 0.6702 GB, free: 2.887 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006584/0.6674, allocations: 414.6 kB / 0.6706 GB, free: 2.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000781/0.6682, allocations: 0.6321 MB / 0.6712 GB, free: 1.773 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007652/0.6689, allocations: 488.5 kB / 0.6716 GB, free: 1.301 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.6689, allocations: 0 / 0.6716 GB, free: 1.301 MB / 458.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002331/0.6713, allocations: 1.457 MB / 0.6731 GB, free: 15.83 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.6713, allocations: 11.94 kB / 0.6731 GB, free: 15.82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.6713, allocations: 7.953 kB / 0.6731 GB, free: 15.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001443/0.6728, allocations: 0.5124 MB / 0.6736 GB, free: 15.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007324/0.6735, allocations: 187.7 kB / 0.6738 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005831/0.6794, allocations: 4.248 MB / 0.6779 GB, free: 10.72 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000747/0.6801, allocations: 126.8 kB / 0.678 GB, free: 10.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.009e-05/0.6802, allocations: 51.98 kB / 0.6781 GB, free: 10.55 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (108): * Single equations (assignments): 107 * 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.0002012/0.6804, allocations: 168.7 kB / 0.6782 GB, free: 10.38 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.6806, allocations: 79.06 kB / 0.6783 GB, free: 10.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002621/0.6832, allocations: 1.559 MB / 0.6798 GB, free: 8.723 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.6833, allocations: 12 kB / 0.6798 GB, free: 8.711 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.6833, allocations: 4 kB / 0.6798 GB, free: 8.707 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.6833, allocations: 7.969 kB / 0.6799 GB, free: 8.699 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003851/0.6871, allocations: 2.793 MB / 0.6826 GB, free: 5.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.6872, allocations: 8 kB / 0.6826 GB, free: 5.832 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006107/0.6878, allocations: 143.8 kB / 0.6827 GB, free: 5.691 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001355/0.6891, allocations: 0.4989 MB / 0.6832 GB, free: 5.191 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-05/0.6892, allocations: 31.92 kB / 0.6832 GB, free: 5.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00577/0.695, allocations: 4.246 MB / 0.6874 GB, free: 0.7734 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.695, allocations: 7.891 kB / 0.6874 GB, free: 0.7656 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003072/0.6981, allocations: 2.187 MB / 0.6895 GB, free: 14.54 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003778/0.6985, allocations: 291.6 kB / 0.6898 GB, free: 14.24 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.844e-05/0.6986, allocations: 23.95 kB / 0.6898 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005873/0.6992, allocations: 56.03 kB / 0.6899 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/0.6994, allocations: 97.17 kB / 0.69 GB, free: 14.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.368e-05/0.6995, allocations: 43.97 kB / 0.69 GB, free: 14.02 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003116/0.6998, allocations: 301.6 kB / 0.6903 GB, free: 13.73 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6998, allocations: 0 / 0.6903 GB, free: 13.73 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001058/0.7009, allocations: 415.1 kB / 0.6907 GB, free: 13.32 MB / 490.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 (84): * Single equations (assignments): 83 * 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.003437/0.7043, allocations: 2.966 MB / 0.6936 GB, free: 10.32 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002752/0.7071, allocations: 1.661 MB / 0.6952 GB, free: 8.648 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.7071, allocations: 0 / 0.6952 GB, free: 8.648 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001773/0.7089, allocations: 1.105 MB / 0.6963 GB, free: 7.527 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004703/0.7094, allocations: 89.02 kB / 0.6964 GB, free: 7.445 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005256/0.7146, allocations: 2.424 MB / 0.6988 GB, free: 4.969 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005797/0.7152, allocations: 1.099 MB / 0.6998 GB, free: 3.844 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0004813/0.7157, allocations: 106.7 kB / 0.6999 GB, free: 3.734 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/0.7162, allocations: 379.3 kB / 0.7003 GB, free: 3.363 MB / 490.7 MB Notification: Performance of SimCode: time 6.31e-07/0.7162, allocations: 0 / 0.7003 GB, free: 3.363 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06721/0.7834, allocations: 24.03 MB / 0.7238 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003053/0.7838, allocations: 194.7 kB / 0.7239 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.475/3.259, allocations: 4 kB / 0.7239 GB, free: 11.34 MB / 0.5105 GB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat