Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.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.SerialConnection,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001541/0.001541, 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.001813/0.001813, 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.451/1.451, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2406/0.2406, allocations: 46.13 MB / 344.2 MB, free: 11.57 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.002215/0.002216, allocations: 75.34 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1253, allocations: 62.45 MB / 480.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.009787/0.1351, allocations: 7.495 MB / 487.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005379/0.1405, allocations: 2.361 MB / 490.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005197/0.1411, allocations: 24 kB / 490.1 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003857/0.145, allocations: 1.733 MB / 491.8 MB, free: 9.484 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001939/0.1469, allocations: 0.71 MB / 492.5 MB, free: 8.773 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001564/0.1485, allocations: 0.7418 MB / 493.3 MB, free: 8.039 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00141/0.1499, allocations: 1.241 MB / 494.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001321/0.1513, allocations: 0.9378 MB / 495.5 MB, free: 5.836 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006346/0.1519, allocations: 0.5097 MB / 496 MB, free: 5.324 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007045/0.1526, allocations: 0.6575 MB / 496.6 MB, free: 4.664 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001561/0.1528, allocations: 108 kB / 496.7 MB, free: 4.559 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006344/0.1534, allocations: 303.7 kB / 497 MB, free: 4.262 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002578/0.1537, allocations: 271 kB / 497.3 MB, free: 3.996 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005774/0.1543, allocations: 0.6102 MB / 497.9 MB, free: 3.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001691/0.156, allocations: 1.581 MB / 499.5 MB, free: 1.797 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.156, allocations: 0 / 499.5 MB, free: 1.797 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.322e-06/0.156, allocations: 4 kB / 499.5 MB, free: 1.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.156, allocations: 0 / 499.5 MB, free: 1.793 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: 338 * Number of variables: 338 Notification: Performance of Generate backend data structure: time 0.00436/0.1604, allocations: 1.807 MB / 0.4895 GB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.1604, allocations: 12.03 kB / 0.4896 GB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002303/0.1607, allocations: 194.7 kB / 0.4897 GB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009284/0.17, allocations: 1.256 MB / 0.491 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000921/0.1709, allocations: 0.5607 MB / 0.4915 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.109e-05/0.171, allocations: 103 kB / 0.4916 GB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002026/0.1712, allocations: 135.8 kB / 0.4917 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002673/0.1739, allocations: 1.246 MB / 0.493 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.909e-05/0.174, allocations: 8 kB / 0.493 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.1741, allocations: 56 kB / 0.493 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.807e-05/0.1741, allocations: 35.94 kB / 0.4931 GB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002632/0.1768, allocations: 1.455 MB / 0.4945 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00928/0.1861, allocations: 5.831 MB / 0.5002 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001939/0.188, allocations: 1.116 MB / 0.5013 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006062/0.1886, allocations: 370.9 kB / 0.5016 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001883/0.1888, allocations: 195.2 kB / 0.5018 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/0.1889, allocations: 39.56 kB / 0.5018 GB, free: 2.668 MB / 382.1 MB Notification: Performance of pre-optimization done (n=90): time 2.515e-06/0.1889, allocations: 4 kB / 0.5018 GB, free: 2.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=90): time 0.002395/0.1913, allocations: 1.206 MB / 0.503 GB, free: 1.406 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.1914, allocations: 64.41 kB / 0.5031 GB, free: 1.332 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/0.1925, allocations: 0.8325 MB / 0.5039 GB, free: 500 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.346e-05/0.1926, allocations: 45.64 kB / 0.5039 GB, free: 448 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2467/0.4393, allocations: 499.7 kB / 0.5044 GB, free: 40.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004941/0.4398, allocations: 310.9 kB / 0.5047 GB, free: 40.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004262/0.4402, allocations: 202.3 kB / 0.5049 GB, free: 40.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.4404, allocations: 399.4 kB / 0.5053 GB, free: 39.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007318/0.4412, allocations: 348.3 kB / 0.5056 GB, free: 39.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008532/0.442, allocations: 0.6215 MB / 0.5062 GB, free: 39.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.4435, allocations: 0.9977 MB / 0.5072 GB, free: 39.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.4435, allocations: 2.75 kB / 0.5072 GB, free: 39.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002332/0.4459, allocations: 1.188 MB / 0.5084 GB, free: 38.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.4459, allocations: 12.56 kB / 0.5084 GB, free: 38.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.4459, allocations: 8.812 kB / 0.5084 GB, free: 38.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003127/0.4462, allocations: 71.45 kB / 0.5084 GB, free: 38.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.4473, allocations: 262.2 kB / 0.5087 GB, free: 38.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00176/0.4491, allocations: 2.836 MB / 0.5115 GB, free: 35.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000925/0.45, allocations: 151.9 kB / 0.5116 GB, free: 35.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.293e-05/0.4501, allocations: 53.27 kB / 0.5117 GB, free: 35.72 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003989/0.4505, allocations: 253.4 kB / 0.5119 GB, free: 35.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/0.4507, allocations: 96.44 kB / 0.512 GB, free: 35.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001894/0.4526, allocations: 1.111 MB / 0.5131 GB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.4526, allocations: 8.469 kB / 0.5131 GB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.4526, allocations: 2.5 kB / 0.5131 GB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.4526, allocations: 4.5 kB / 0.5131 GB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003983/0.4566, allocations: 3.167 MB / 0.5162 GB, free: 32.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.4567, allocations: 7.172 kB / 0.5162 GB, free: 32.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007164/0.4574, allocations: 185.2 kB / 0.5164 GB, free: 32.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002213/0.4576, allocations: 56.72 kB / 0.5164 GB, free: 32.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.95e-05/0.4577, allocations: 27.77 kB / 0.5164 GB, free: 32.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.4593, allocations: 2.826 MB / 0.5192 GB, free: 29.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.798e-06/0.4593, allocations: 7.031 kB / 0.5192 GB, free: 29.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/0.4617, allocations: 1.481 MB / 0.5207 GB, free: 28.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002876/0.462, allocations: 192.7 kB / 0.5208 GB, free: 28.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.4622, allocations: 29.47 kB / 0.5209 GB, free: 28.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007254/0.4629, allocations: 46.89 kB / 0.5209 GB, free: 28.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/0.4631, allocations: 86.28 kB / 0.521 GB, free: 28.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.363e-05/0.4632, allocations: 36.19 kB / 0.521 GB, free: 28.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001019/0.4642, allocations: 0.5793 MB / 0.5216 GB, free: 28.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4642, allocations: 0 / 0.5216 GB, free: 28.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001483/0.4657, allocations: 311.8 kB / 0.5219 GB, free: 28.31 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 (currentSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002834/0.4685, allocations: 2.094 MB / 0.5239 GB, free: 26.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002783/0.4713, allocations: 1.127 MB / 0.525 GB, free: 26.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/0.4714, allocations: 5.125 kB / 0.525 GB, free: 26.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.4724, allocations: 0.6213 MB / 0.5257 GB, free: 25.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009251/0.4734, allocations: 121.1 kB / 0.5258 GB, free: 25.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/0.4872, allocations: 9.114 MB / 0.5347 GB, free: 20.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007315/0.4879, allocations: 1.01 MB / 0.5357 GB, free: 19.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007273/0.4887, allocations: 157.8 kB / 0.5358 GB, free: 19.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005114/0.4892, allocations: 387 kB / 0.5362 GB, free: 19.07 MB / 382.1 MB Notification: Performance of SimCode: time 1.603e-06/0.4892, allocations: 0 / 0.5362 GB, free: 19.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05142/0.5406, allocations: 18.99 MB / 0.5547 GB, free: 3.484 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.9, allocations: 10.08 kB / 0.5547 GB, free: 3.48 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1)