Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.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.Polyphase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_Polyphase_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.001308/0.001308, allocations: 196.2 kB / 14.16 MB, free: 1.156 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009081/0.000908, allocations: 91.2 kB / 292.1 MB, free: 5.926 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1938/0.1938, allocations: 45.14 MB / 389.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.453e-05/3.455e-05, allocations: 8 kB / 460.5 MB, free: 69.94 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.103, allocations: 63.24 MB / 0.5115 GB, free: 6.719 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4126/0.5157, allocations: 117 MB / 0.6257 GB, free: 9.113 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.516, allocations: 85.14 kB / 0.6258 GB, free: 9.07 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.407/1.923, allocations: 494.2 MB / 1.108 GB, free: 51.47 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.293e-06/1.924, allocations: 0 / 1.108 GB, free: 51.47 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0007039/1.924, allocations: 295.7 kB / 1.109 GB, free: 51.18 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3858 * Number of variables: 3858 Notification: Performance of Generate backend data structure: time 0.04745/1.972, allocations: 13.42 MB / 1.122 GB, free: 37.81 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.199e-05/1.972, allocations: 15.97 kB / 1.122 GB, free: 37.8 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01037/1.982, allocations: 1.974 MB / 1.124 GB, free: 35.82 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03833/2.021, allocations: 7.874 MB / 1.131 GB, free: 27.99 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02155/2.042, allocations: 9.073 MB / 1.14 GB, free: 18.89 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001027/2.043, allocations: 0.9968 MB / 1.141 GB, free: 17.9 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005377/2.049, allocations: 1.286 MB / 1.143 GB, free: 16.63 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6771/2.726, allocations: 22.9 MB / 1.165 GB, free: 46.36 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003818/2.726, allocations: 25.27 kB / 1.165 GB, free: 46.36 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003133/2.729, allocations: 0.5558 MB / 1.165 GB, free: 46.36 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001054/2.73, allocations: 1.019 MB / 1.166 GB, free: 46.34 MB / 0.5418 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04214/2.773, allocations: 19.51 MB / 1.186 GB, free: 46.21 MB / 0.5418 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1253/2.898, allocations: 73.21 MB / 1.257 GB, free: 27 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02375/2.922, allocations: 28.47 MB / 1.285 GB, free: 18.65 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006915/2.929, allocations: 4.795 MB / 1.289 GB, free: 16.83 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02791/2.957, allocations: 16.62 MB / 1.306 GB, free: 9.07 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.736e-05/2.957, allocations: 83.27 kB / 1.306 GB, free: 8.996 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=465): time 6.592e-06/2.957, allocations: 0 / 1.306 GB, free: 8.996 MB / 0.5574 GB Notification: Performance of matching and sorting (n=465): time 0.01089/2.968, allocations: 8.077 MB / 1.314 GB, free: 5.996 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.344e-05/2.968, allocations: 127.2 kB / 1.314 GB, free: 5.895 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007016/2.975, allocations: 4.522 MB / 1.318 GB, free: 4.27 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.0008575/2.976, allocations: 98.27 kB / 1.318 GB, free: 4.184 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.003565/2.979, allocations: 5.866 MB / 1.324 GB, free: 15.8 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002157/2.981, allocations: 1.573 MB / 1.326 GB, free: 14.61 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008043/2.982, allocations: 150.3 kB / 1.326 GB, free: 14.49 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0005019/2.983, allocations: 0.6086 MB / 1.326 GB, free: 14.06 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005775/2.989, allocations: 3.961 MB / 1.33 GB, free: 12.66 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00807/2.997, allocations: 6.982 MB / 1.337 GB, free: 7.289 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007904/3.005, allocations: 5.435 MB / 1.342 GB, free: 5.355 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.892e-05/3.005, allocations: 29.94 kB / 1.342 GB, free: 5.355 MB / 0.573 GB Notification: Performance of matching and sorting (n=949) (initialization): time 0.02914/3.034, allocations: 12.8 MB / 1.355 GB, free: 12 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 0.000189/3.034, allocations: 48 kB / 1.355 GB, free: 11.95 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002684/3.034, allocations: 107.3 kB / 1.355 GB, free: 11.85 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006351/3.041, allocations: 3.085 MB / 1.358 GB, free: 9.48 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006091/3.047, allocations: 1.581 MB / 1.36 GB, free: 8.137 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008242/3.055, allocations: 6.421 MB / 1.366 GB, free: 2.52 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007132/3.062, allocations: 1.055 MB / 1.367 GB, free: 1.574 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001539/3.064, allocations: 370.2 kB / 1.367 GB, free: 1.223 MB / 0.5887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 461 * 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 (802): * Single equations (assignments): 799 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 28,20 28,20 28} Notification: Performance of prepare postOptimizeDAE: time 0.002217/3.066, allocations: 0.585 MB / 1.368 GB, free: 0.6328 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001445/3.067, allocations: 0.4976 MB / 1.368 GB, free: 132 kB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02408/3.092, allocations: 9.616 MB / 1.378 GB, free: 9.148 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.345e-05/3.092, allocations: 48 kB / 1.378 GB, free: 9.102 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.81e-05/3.092, allocations: 3.953 kB / 1.378 GB, free: 9.098 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.147e-05/3.092, allocations: 23.53 kB / 1.378 GB, free: 9.098 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4219/3.514, allocations: 20.57 MB / 1.398 GB, free: 111.6 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-05/3.514, allocations: 0 / 1.398 GB, free: 111.6 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003281/3.517, allocations: 0.7423 MB / 1.399 GB, free: 111.6 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005523/3.523, allocations: 2.946 MB / 1.401 GB, free: 111.6 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007161/3.523, allocations: 96.86 kB / 1.401 GB, free: 111.6 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007572/3.531, allocations: 6.232 MB / 1.408 GB, free: 110 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/3.531, allocations: 4.219 kB / 1.408 GB, free: 110 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01969/3.551, allocations: 13.75 MB / 1.421 GB, free: 109.6 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003981/3.555, allocations: 1.397 MB / 1.422 GB, free: 109.4 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001194/3.556, allocations: 75.62 kB / 1.422 GB, free: 109.4 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003348/3.559, allocations: 391.8 kB / 1.423 GB, free: 109.4 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007274/3.56, allocations: 318.1 kB / 1.423 GB, free: 109.4 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000334/3.56, allocations: 128.5 kB / 1.423 GB, free: 109.4 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.005646/3.566, allocations: 3.361 MB / 1.427 GB, free: 109.2 MB / 0.6043 GB Notification: Performance of sort global known variables: time 2.3e-07/3.566, allocations: 0 / 1.427 GB, free: 109.2 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.01011/3.576, allocations: 3.204 MB / 1.43 GB, free: 108.7 MB / 0.6043 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 (357): * Single equations (assignments): 354 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 28,20 28,20 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01952/3.596, allocations: 14.56 MB / 1.444 GB, free: 107.5 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.01504/3.611, allocations: 9.793 MB / 1.453 GB, free: 107.1 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/3.611, allocations: 2.438 kB / 1.453 GB, free: 107.1 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.008543/3.619, allocations: 4.571 MB / 1.458 GB, free: 106.9 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008065/3.627, allocations: 1.156 MB / 1.459 GB, free: 106.9 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0659/3.693, allocations: 25.15 MB / 1.484 GB, free: 103.1 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01969/3.713, allocations: 9.243 MB / 1.493 GB, free: 102.1 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 0.009874/3.723, allocations: 2.853 MB / 1.495 GB, free: 102 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009212/3.732, allocations: 4.651 MB / 1.5 GB, free: 98.51 MB / 0.6043 GB Notification: Performance of SimCode: time 9.92e-07/3.732, allocations: 0 / 1.5 GB, free: 98.51 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5644/4.297, allocations: 174.3 MB / 1.67 GB, free: 115.6 MB / 0.6043 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001573/4.297, allocations: 199.3 kB / 1.67 GB, free: 115.3 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.573/9.87, allocations: 0 / 1.67 GB, free: 115.3 MB / 0.6043 GB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal_res.mat does not exist to compare? outputFormat=mat