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.00148/0.00148, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001406/0.001406, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 247 MB, free: 10.43 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.2256/0.2256, allocations: 46.11 MB / 344.4 MB, free: 11.45 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.002266/0.002266, allocations: 79.86 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3777/0.38, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.01007/0.3901, allocations: 7.745 MB / 0.5382 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005008/0.3952, allocations: 2.43 MB / 0.5405 GB, free: 5.207 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001045/0.3963, allocations: 25.75 kB / 0.5406 GB, free: 5.207 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004264/0.4005, allocations: 1.815 MB / 0.5423 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002412/0.403, allocations: 0.708 MB / 0.543 GB, free: 3.281 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002659/0.4056, allocations: 1.077 MB / 0.5441 GB, free: 2.484 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002412/0.4081, allocations: 1.406 MB / 0.5454 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00198/0.4101, allocations: 1.009 MB / 0.5464 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001146/0.4112, allocations: 0.6124 MB / 0.547 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001278/0.4125, allocations: 0.7246 MB / 0.5477 GB, free: 112 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003574/0.4129, allocations: 112 kB / 0.5478 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00118/0.4141, allocations: 335.8 kB / 0.5482 GB, free: 15.67 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004303/0.4145, allocations: 302.9 kB / 0.5485 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001008/0.4156, allocations: 0.653 MB / 0.5491 GB, free: 14.72 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002852/0.4184, allocations: 1.771 MB / 0.5508 GB, free: 12.94 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.766e-06/0.4185, allocations: 0 / 0.5508 GB, free: 12.94 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.4185, allocations: 3.938 kB / 0.5508 GB, free: 12.94 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.271e-05/0.4185, allocations: 0 / 0.5508 GB, free: 12.94 MB / 414.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.008392/0.4269, allocations: 2.41 MB / 0.5532 GB, free: 10.47 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.427, allocations: 8.031 kB / 0.5532 GB, free: 10.46 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000233/0.4272, allocations: 194.7 kB / 0.5534 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009692/0.4369, allocations: 1.339 MB / 0.5547 GB, free: 8.926 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.4382, allocations: 0.621 MB / 0.5553 GB, free: 8.266 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.054e-05/0.4383, allocations: 95.02 kB / 0.5554 GB, free: 8.172 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002226/0.4385, allocations: 136.1 kB / 0.5555 GB, free: 8.039 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002701/0.4412, allocations: 1.498 MB / 0.557 GB, free: 6.492 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.003e-05/0.4413, allocations: 3.953 kB / 0.557 GB, free: 6.488 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001273/0.4414, allocations: 56 kB / 0.557 GB, free: 6.434 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.219e-05/0.4415, allocations: 39.92 kB / 0.5571 GB, free: 6.395 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002755/0.4442, allocations: 1.513 MB / 0.5585 GB, free: 4.875 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008471/0.4527, allocations: 5.612 MB / 0.564 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002556/0.4553, allocations: 2.182 MB / 0.5662 GB, free: 12.51 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/0.4564, allocations: 0.6544 MB / 0.5668 GB, free: 11.85 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002428/0.4566, allocations: 195.1 kB / 0.567 GB, free: 11.63 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.084e-05/0.4567, allocations: 51.56 kB / 0.567 GB, free: 11.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 4.198e-06/0.4567, allocations: 0 / 0.567 GB, free: 11.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=127): time 0.009531/0.4662, allocations: 3.098 MB / 0.5701 GB, free: 8.441 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.463e-05/0.4663, allocations: 90.11 kB / 0.5701 GB, free: 8.336 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000583/0.4669, allocations: 473.8 kB / 0.5706 GB, free: 7.863 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.229e-05/0.467, allocations: 45.7 kB / 0.5706 GB, free: 7.812 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003327/0.4674, allocations: 480.9 kB / 0.5711 GB, free: 7.336 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003691/0.4677, allocations: 444.2 kB / 0.5715 GB, free: 6.898 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003586/0.4681, allocations: 222.8 kB / 0.5717 GB, free: 6.676 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.4683, allocations: 382.8 kB / 0.5721 GB, free: 6.293 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008859/0.4692, allocations: 454.4 kB / 0.5725 GB, free: 5.848 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001104/0.4703, allocations: 0.6958 MB / 0.5732 GB, free: 5.062 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002008/0.4723, allocations: 1.209 MB / 0.5744 GB, free: 3.758 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.4724, allocations: 3.938 kB / 0.5744 GB, free: 3.754 MB / 430.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.003067/0.4754, allocations: 1.602 MB / 0.576 GB, free: 2.145 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.4755, allocations: 10.34 kB / 0.576 GB, free: 2.137 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.4755, allocations: 8 kB / 0.576 GB, free: 2.129 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001595/0.4771, allocations: 0.5281 MB / 0.5765 GB, free: 1.598 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007859/0.4779, allocations: 195.7 kB / 0.5767 GB, free: 1.406 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001978/0.4781, allocations: 61.12 kB / 0.5767 GB, free: 1.344 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006707/0.4788, allocations: 127.1 kB / 0.5769 GB, free: 1.219 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.383e-05/0.4789, allocations: 48 kB / 0.5769 GB, free: 1.172 MB / 430.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.0004426/0.4793, allocations: 265.6 kB / 0.5772 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/0.4795, allocations: 87.47 kB / 0.5772 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002932/0.4824, allocations: 1.568 MB / 0.5788 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.992e-05/0.4825, allocations: 15.94 kB / 0.5788 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4825, allocations: 0 / 0.5788 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/0.4825, allocations: 11.97 kB / 0.5788 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004627/0.4871, allocations: 2.871 MB / 0.5816 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.4872, allocations: 3.938 kB / 0.5816 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006459/0.4878, allocations: 143.8 kB / 0.5817 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001523/0.4894, allocations: 0.5184 MB / 0.5822 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-05/0.4894, allocations: 27.98 kB / 0.5823 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003557/0.4898, allocations: 72.61 kB / 0.5823 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.4898, allocations: 3.984 kB / 0.5823 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004235/0.4941, allocations: 2.349 MB / 0.5846 GB, free: 9.133 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004774/0.4946, allocations: 284.2 kB / 0.5849 GB, free: 8.836 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.4947, allocations: 31.92 kB / 0.5849 GB, free: 8.805 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005891/0.4953, allocations: 44.05 kB / 0.585 GB, free: 8.762 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/0.4955, allocations: 81.14 kB / 0.5851 GB, free: 8.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.491e-05/0.4956, allocations: 35.98 kB / 0.5851 GB, free: 8.645 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000374/0.496, allocations: 310.9 kB / 0.5854 GB, free: 8.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.496, allocations: 0 / 0.5854 GB, free: 8.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009538/0.4969, allocations: 347.2 kB / 0.5857 GB, free: 8 MB / 446.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.004891/0.5018, allocations: 2.947 MB / 0.5886 GB, free: 5.023 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003523/0.5054, allocations: 1.367 MB / 0.5899 GB, free: 3.656 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5054, allocations: 448 / 0.5899 GB, free: 3.656 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001784/0.5072, allocations: 0.7738 MB / 0.5907 GB, free: 2.883 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008588/0.5081, allocations: 104.8 kB / 0.5908 GB, free: 2.781 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01361/0.5217, allocations: 8.435 MB / 0.599 GB, free: 10.05 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000715/0.5225, allocations: 1.04 MB / 0.6 GB, free: 8.984 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004641/0.5229, allocations: 110.8 kB / 0.6001 GB, free: 8.871 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005244/0.5235, allocations: 391.3 kB / 0.6005 GB, free: 8.488 MB / 462.1 MB Notification: Performance of SimCode: time 8.71e-07/0.5235, allocations: 0 / 0.6005 GB, free: 8.488 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05269/0.5762, allocations: 21.71 MB / 0.6217 GB, free: 3.023 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.64, allocations: 3.75 kB / 0.6217 GB, free: 3.02 MB / 478.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)