Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009283/0.0009284, allocations: 97.12 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 174.3 kB / 17.87 MB, free: 5.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 223.2 MB / 241.8 MB, free: 14.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2176/0.2176, allocations: 44.23 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.0003519, allocations: 8 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1291, allocations: 61.91 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.006274/0.1354, allocations: 6.193 MB / 477.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004214/0.1396, allocations: 2.23 MB / 480 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005688/0.1402, allocations: 28 kB / 480 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006451/0.1409, allocations: 262.4 kB / 480.2 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001691/0.1426, allocations: 0.7904 MB / 481 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001589/0.1442, allocations: 0.7549 MB / 481.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001403/0.1456, allocations: 0.9478 MB / 482.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002461/0.1481, allocations: 1.494 MB / 484.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008575/0.149, allocations: 490.2 kB / 484.7 MB, free: 420 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008296/0.1498, allocations: 0.6069 MB / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.1499, allocations: 59.94 kB / 485.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008397/0.1508, allocations: 239.8 kB / 485.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002039/0.151, allocations: 223.1 kB / 485.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003355/0.1513, allocations: 241.1 kB / 486.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001488/0.1528, allocations: 1.289 MB / 487.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1529, allocations: 0 / 487.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.1529, allocations: 7.922 kB / 487.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.1529, allocations: 0 / 487.4 MB, free: 13.75 MB / 366.1 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.006885/0.1598, allocations: 2.15 MB / 489.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.1598, allocations: 8.031 kB / 489.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002812/0.1601, allocations: 198.5 kB / 489.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009464/0.1696, allocations: 1.399 MB / 491.1 MB, free: 9.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.171, allocations: 0.5807 MB / 491.7 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.131e-05/0.171, allocations: 98.59 kB / 491.8 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002148/0.1713, allocations: 135.9 kB / 491.9 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002535/0.1738, allocations: 1.471 MB / 493.4 MB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.528e-05/0.1739, allocations: 8 kB / 493.4 MB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000125/0.174, allocations: 48 kB / 493.4 MB, free: 7.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.79e-05/0.174, allocations: 43.98 kB / 493.5 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002441/0.1765, allocations: 1.513 MB / 495 MB, free: 5.938 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007662/0.1842, allocations: 5.385 MB / 0.4887 GB, free: 288 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002379/0.1866, allocations: 2.171 MB / 0.4908 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001477/0.1867, allocations: 114 kB / 0.4909 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.045e-05/0.1868, allocations: 43.56 kB / 0.4909 GB, free: 13.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 2.885e-06/0.1869, allocations: 0 / 0.4909 GB, free: 13.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.009043/0.1959, allocations: 3.075 MB / 0.4939 GB, free: 10.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.637e-05/0.196, allocations: 94.05 kB / 0.494 GB, free: 10.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007481/0.1968, allocations: 465.8 kB / 0.4945 GB, free: 10.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.458e-05/0.1969, allocations: 45.7 kB / 0.4945 GB, free: 9.957 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004008/0.1973, allocations: 463.5 kB / 0.495 GB, free: 9.496 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004406/0.1978, allocations: 421.9 kB / 0.4954 GB, free: 9.078 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.026e-05/0.1979, allocations: 24 kB / 0.4954 GB, free: 9.055 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002228/0.1981, allocations: 386.7 kB / 0.4957 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008582/0.1989, allocations: 458.4 kB / 0.4962 GB, free: 8.223 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.2, allocations: 0.6963 MB / 0.4969 GB, free: 7.434 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.201, allocations: 0.5293 MB / 0.4974 GB, free: 6.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.201, allocations: 0 / 0.4974 GB, free: 6.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.00287/0.2039, allocations: 1.578 MB / 0.4989 GB, free: 5.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/0.204, allocations: 8 kB / 0.4989 GB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/0.204, allocations: 11.94 kB / 0.4989 GB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001584/0.2056, allocations: 0.524 MB / 0.4995 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000795/0.2064, allocations: 203.7 kB / 0.4996 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2991/0.5055, allocations: 5.006 MB / 0.5045 GB, free: 44.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/0.5067, allocations: 127.1 kB / 0.5047 GB, free: 44.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.5069, allocations: 49.81 kB / 0.5047 GB, free: 44.96 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * 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 28} Notification: Performance of prepare postOptimizeDAE: time 0.0005582/0.5074, allocations: 273 kB / 0.505 GB, free: 44.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002765/0.5077, allocations: 87.42 kB / 0.5051 GB, free: 44.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003249/0.511, allocations: 1.579 MB / 0.5066 GB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-05/0.511, allocations: 15.58 kB / 0.5066 GB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.511, allocations: 3.484 kB / 0.5066 GB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.901e-05/0.5111, allocations: 6.188 kB / 0.5066 GB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005127/0.5162, allocations: 2.871 MB / 0.5094 GB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.5162, allocations: 4.375 kB / 0.5094 GB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006837/0.5169, allocations: 148.4 kB / 0.5096 GB, free: 44.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001638/0.5186, allocations: 0.5121 MB / 0.5101 GB, free: 43.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.678e-05/0.5187, allocations: 29.66 kB / 0.5101 GB, free: 43.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007667/0.5263, allocations: 5.002 MB / 0.515 GB, free: 40.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.5264, allocations: 0.8594 kB / 0.515 GB, free: 40.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004842/0.5312, allocations: 2.368 MB / 0.5173 GB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000593/0.5318, allocations: 275.5 kB / 0.5176 GB, free: 39.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.5319, allocations: 22.34 kB / 0.5176 GB, free: 39.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005956/0.5325, allocations: 54.78 kB / 0.5176 GB, free: 39.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003446/0.5329, allocations: 106.4 kB / 0.5177 GB, free: 39.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-05/0.533, allocations: 37.53 kB / 0.5178 GB, free: 39.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000443/0.5334, allocations: 304.3 kB / 0.5181 GB, free: 39 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5334, allocations: 0 / 0.5181 GB, free: 39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001561/0.535, allocations: 418.1 kB / 0.5185 GB, free: 38.9 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked 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 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.004272/0.5393, allocations: 3.108 MB / 0.5215 GB, free: 36.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00373/0.543, allocations: 1.846 MB / 0.5233 GB, free: 36.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.5431, allocations: 1.531 kB / 0.5233 GB, free: 36.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002476/0.5455, allocations: 1.241 MB / 0.5245 GB, free: 35.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006965/0.5463, allocations: 83.23 kB / 0.5246 GB, free: 35.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009131/0.5554, allocations: 10.45 MB / 0.5348 GB, free: 27.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/0.556, allocations: 1.1 MB / 0.5359 GB, free: 26.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000504/0.5565, allocations: 115.8 kB / 0.536 GB, free: 26.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003916/0.5569, allocations: 394.2 kB / 0.5363 GB, free: 26.58 MB / 382.1 MB Notification: Performance of SimCode: time 1.383e-06/0.5569, allocations: 5.688 kB / 0.5364 GB, free: 26.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0395/0.5964, allocations: 23.75 MB / 0.5595 GB, free: 4.902 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001651/0.5966, allocations: 227.9 kB / 0.5598 GB, free: 4.656 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.396/2.993, allocations: 7.594 kB / 0.5598 GB, free: 4.652 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat