Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00163/0.00163, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001945/0.001945, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2385/0.2385, allocations: 46.12 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002173/0.002173, allocations: 81.77 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1447, allocations: 62.45 MB / 480.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.009996/0.1548, allocations: 7.729 MB / 487.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00571/0.1606, allocations: 2.431 MB / 490.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001081/0.1617, allocations: 27.94 kB / 490.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004502/0.1662, allocations: 1.811 MB / 492.2 MB, free: 9.098 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002587/0.1689, allocations: 0.7194 MB / 492.9 MB, free: 8.379 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00289/0.1718, allocations: 1.065 MB / 494 MB, free: 7.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002823/0.1746, allocations: 1.392 MB / 495.4 MB, free: 5.926 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001851/0.1765, allocations: 1.013 MB / 496.4 MB, free: 4.895 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009911/0.1775, allocations: 0.6072 MB / 497 MB, free: 4.285 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009085/0.1784, allocations: 0.7392 MB / 497.8 MB, free: 3.543 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001814/0.1786, allocations: 112 kB / 497.9 MB, free: 3.434 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001057/0.1796, allocations: 335.8 kB / 498.2 MB, free: 3.105 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000286/0.1799, allocations: 290.9 kB / 498.5 MB, free: 2.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007315/0.1807, allocations: 0.6569 MB / 499.1 MB, free: 2.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002376/0.1831, allocations: 1.74 MB / 0.4891 GB, free: 424 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.1831, allocations: 0 / 0.4891 GB, free: 424 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1831, allocations: 0 / 0.4891 GB, free: 424 kB / 366.1 MB Notification: Performance of Transformations before backend: time 2.46e-05/0.1831, allocations: 0 / 0.4891 GB, free: 424 kB / 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.008251/0.1914, allocations: 2.388 MB / 0.4915 GB, free: 13.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/0.1915, allocations: 8.031 kB / 0.4915 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004198/0.1919, allocations: 194.7 kB / 0.4917 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/0.2021, allocations: 1.338 MB / 0.493 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00173/0.2039, allocations: 0.6051 MB / 0.4936 GB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/0.204, allocations: 95.02 kB / 0.4936 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005228/0.2046, allocations: 132.1 kB / 0.4938 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00403/0.2086, allocations: 1.498 MB / 0.4952 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.89e-05/0.2087, allocations: 3.906 kB / 0.4952 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002261/0.209, allocations: 52 kB / 0.4953 GB, free: 9.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.813e-05/0.209, allocations: 39.98 kB / 0.4953 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003262/0.2123, allocations: 1.517 MB / 0.4968 GB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01026/0.2226, allocations: 5.634 MB / 0.5023 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00286/0.2255, allocations: 2.182 MB / 0.5044 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2838/0.5093, allocations: 0.6547 MB / 0.5051 GB, free: 40.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002083/0.5095, allocations: 192.5 kB / 0.5053 GB, free: 40.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.5096, allocations: 43.41 kB / 0.5053 GB, free: 40.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.927e-06/0.5096, allocations: 3.594 kB / 0.5053 GB, free: 40.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.01019/0.5198, allocations: 3.103 MB / 0.5083 GB, free: 39.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.5199, allocations: 90.77 kB / 0.5084 GB, free: 39.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006045/0.5205, allocations: 470.9 kB / 0.5089 GB, free: 39.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.282e-05/0.5206, allocations: 46.83 kB / 0.5089 GB, free: 39.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.5208, allocations: 468.6 kB / 0.5094 GB, free: 39.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002803/0.5211, allocations: 421.1 kB / 0.5098 GB, free: 38.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003571/0.5215, allocations: 218.7 kB / 0.51 GB, free: 38.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.5216, allocations: 385.4 kB / 0.5103 GB, free: 38.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008205/0.5224, allocations: 457.8 kB / 0.5108 GB, free: 38.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009884/0.5234, allocations: 0.6946 MB / 0.5115 GB, free: 37.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001806/0.5252, allocations: 1.205 MB / 0.5126 GB, free: 36.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/0.5253, allocations: 2.281 kB / 0.5126 GB, free: 36.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.002957/0.5282, allocations: 1.598 MB / 0.5142 GB, free: 36.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.06e-05/0.5283, allocations: 14.47 kB / 0.5142 GB, free: 36.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/0.5283, allocations: 7.062 kB / 0.5142 GB, free: 36.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001587/0.5299, allocations: 0.5283 MB / 0.5147 GB, free: 36.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008132/0.5307, allocations: 202.8 kB / 0.5149 GB, free: 36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002073/0.5309, allocations: 46.95 kB / 0.515 GB, free: 35.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007442/0.5317, allocations: 120.5 kB / 0.5151 GB, free: 35.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.5318, allocations: 57.31 kB / 0.5151 GB, free: 35.89 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 (booleanStep4.y,booleanStep3.y,booleanStep2.y,booleanStep1.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0005026/0.5323, allocations: 271.5 kB / 0.5154 GB, free: 35.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001777/0.5325, allocations: 83.38 kB / 0.5155 GB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003052/0.5356, allocations: 1.565 MB / 0.517 GB, free: 34.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.43e-05/0.5356, allocations: 17.7 kB / 0.517 GB, free: 34.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.5356, allocations: 1.188 kB / 0.517 GB, free: 34.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.926e-05/0.5356, allocations: 11.09 kB / 0.517 GB, free: 34.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005056/0.5407, allocations: 2.878 MB / 0.5198 GB, free: 33.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.5407, allocations: 1.094 kB / 0.5198 GB, free: 33.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007312/0.5415, allocations: 146.2 kB / 0.52 GB, free: 33.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001498/0.543, allocations: 0.5264 MB / 0.5205 GB, free: 33.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.582e-05/0.5431, allocations: 26.53 kB / 0.5205 GB, free: 33.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003255/0.5434, allocations: 61.52 kB / 0.5206 GB, free: 33.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.5434, allocations: 2.625 kB / 0.5206 GB, free: 33.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004048/0.5475, allocations: 2.346 MB / 0.5229 GB, free: 32.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004702/0.548, allocations: 282 kB / 0.5231 GB, free: 31.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.5481, allocations: 20.53 kB / 0.5232 GB, free: 31.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007354/0.5489, allocations: 48.59 kB / 0.5232 GB, free: 31.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002591/0.5492, allocations: 83.41 kB / 0.5233 GB, free: 31.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.089e-05/0.5493, allocations: 36.02 kB / 0.5233 GB, free: 31.78 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004963/0.5498, allocations: 310.9 kB / 0.5236 GB, free: 31.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5498, allocations: 0 / 0.5236 GB, free: 31.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001313/0.5511, allocations: 346 kB / 0.524 GB, free: 31.54 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004059/0.5552, allocations: 2.943 MB / 0.5268 GB, free: 29.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003731/0.5589, allocations: 1.415 MB / 0.5282 GB, free: 29.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.5589, allocations: 0 / 0.5282 GB, free: 29.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.5605, allocations: 0.7688 MB / 0.529 GB, free: 29.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008193/0.5614, allocations: 99.69 kB / 0.5291 GB, free: 28.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01161/0.573, allocations: 8.659 MB / 0.5375 GB, free: 22.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005136/0.5735, allocations: 1.037 MB / 0.5385 GB, free: 21.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004949/0.5741, allocations: 114.8 kB / 0.5386 GB, free: 21.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004282/0.5745, allocations: 395.3 kB / 0.539 GB, free: 20.85 MB / 382.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5745, allocations: 4 kB / 0.539 GB, free: 20.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04557/0.6201, allocations: 21.23 MB / 0.5597 GB, free: 15.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.73, allocations: 5.188 kB / 0.5598 GB, free: 15.86 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1)