Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",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.00585/0.00585, allocations: 101.1 kB / 15.73 MB, free: 6.062 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.001336/0.001336, allocations: 188.2 kB / 16.67 MB, free: 5.973 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002482/0.002482, allocations: 280.8 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.02/1.02, allocations: 169.2 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00292/0.00292, allocations: 95.84 kB / 0.681 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.43/0.4329, allocations: 86.99 MB / 0.7659 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004905/0.4378, allocations: 3.059 MB / 0.7689 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002219/0.4401, allocations: 1.324 MB / 0.7702 GB, free: 15.42 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.4402, allocations: 4 kB / 0.7702 GB, free: 15.41 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001018/0.4412, allocations: 334.7 kB / 0.7705 GB, free: 15.09 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003122/0.4416, allocations: 143.3 kB / 0.7706 GB, free: 14.95 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003301/0.4419, allocations: 135.6 kB / 0.7708 GB, free: 14.81 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003687/0.4423, allocations: 310.7 kB / 0.7711 GB, free: 14.51 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004254/0.4427, allocations: 236.3 kB / 0.7713 GB, free: 14.28 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.4429, allocations: 123.5 kB / 0.7714 GB, free: 14.16 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002911/0.4432, allocations: 135.5 kB / 0.7715 GB, free: 14.02 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.383e-05/0.4432, allocations: 20 kB / 0.7716 GB, free: 14 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002865/0.4435, allocations: 175.6 kB / 0.7717 GB, free: 13.83 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 9.836e-05/0.4436, allocations: 83.73 kB / 0.7718 GB, free: 13.75 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.4437, allocations: 111.5 kB / 0.7719 GB, free: 13.64 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00043/0.4442, allocations: 332.1 kB / 0.7722 GB, free: 13.32 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.758e-06/0.4442, allocations: 0 / 0.7722 GB, free: 13.32 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4442, allocations: 0 / 0.7722 GB, free: 13.32 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.4442, allocations: 0 / 0.7722 GB, free: 13.32 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008207/0.445, allocations: 0.5259 MB / 0.7727 GB, free: 12.74 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.4451, allocations: 12.03 kB / 0.7728 GB, free: 12.73 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.118e-05/0.4452, allocations: 62.66 kB / 0.7728 GB, free: 12.66 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00057/0.4457, allocations: 80.72 kB / 0.7729 GB, free: 12.58 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000322/0.4461, allocations: 244 kB / 0.7731 GB, free: 12.3 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.4461, allocations: 8.75 kB / 0.7731 GB, free: 12.3 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.271e-05/0.4461, allocations: 20.38 kB / 0.7731 GB, free: 12.28 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000458/0.4466, allocations: 303.3 kB / 0.7734 GB, free: 11.96 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.4466, allocations: 0 / 0.7734 GB, free: 11.96 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.703e-05/0.4466, allocations: 11.98 kB / 0.7734 GB, free: 11.95 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-05/0.4467, allocations: 20.31 kB / 0.7735 GB, free: 11.93 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003209/0.447, allocations: 196.9 kB / 0.7737 GB, free: 11.74 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001635/0.4487, allocations: 1.46 MB / 0.7751 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002784/0.4489, allocations: 175.7 kB / 0.7752 GB, free: 9.914 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.743e-05/0.449, allocations: 36.84 kB / 0.7753 GB, free: 9.875 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 7.774e-06/0.449, allocations: 0 / 0.7753 GB, free: 9.875 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.4491, allocations: 30.56 kB / 0.7753 GB, free: 9.836 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.4491, allocations: 4 kB / 0.7753 GB, free: 9.832 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0004996/0.4496, allocations: 235.6 kB / 0.7755 GB, free: 9.574 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.4496, allocations: 55.41 kB / 0.7756 GB, free: 9.508 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002126/0.4499, allocations: 190.5 kB / 0.7758 GB, free: 9.312 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.4499, allocations: 25.7 kB / 0.7758 GB, free: 9.281 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.45, allocations: 171.9 kB / 0.776 GB, free: 9.109 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.547e-05/0.4501, allocations: 27.78 kB / 0.776 GB, free: 9.082 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.083e-05/0.4501, allocations: 37.67 kB / 0.776 GB, free: 9.039 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.4503, allocations: 330.8 kB / 0.7763 GB, free: 8.707 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.778e-05/0.4503, allocations: 31.97 kB / 0.7764 GB, free: 8.676 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.4505, allocations: 100.5 kB / 0.7765 GB, free: 8.547 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001975/0.4507, allocations: 152.4 kB / 0.7766 GB, free: 8.367 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4507, allocations: 0 / 0.7766 GB, free: 8.367 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003195/0.451, allocations: 186.2 kB / 0.7768 GB, free: 8.176 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.451, allocations: 10.62 kB / 0.7768 GB, free: 8.168 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.4511, allocations: 8 kB / 0.7768 GB, free: 8.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001704/0.4512, allocations: 28.88 kB / 0.7768 GB, free: 8.129 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.4514, allocations: 27.92 kB / 0.7769 GB, free: 8.102 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.4526, allocations: 1.419 MB / 0.7783 GB, free: 6.543 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.4528, allocations: 27.8 kB / 0.7783 GB, free: 6.516 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.4528, allocations: 4 kB / 0.7783 GB, free: 6.512 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.4529, allocations: 153.8 kB / 0.7784 GB, free: 6.352 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.137e-05/0.453, allocations: 15.91 kB / 0.7784 GB, free: 6.336 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.031e-05/0.453, allocations: 13.41 kB / 0.7785 GB, free: 6.32 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.453, allocations: 4 kB / 0.7785 GB, free: 6.316 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.453, allocations: 0 / 0.7785 GB, free: 6.316 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4531, allocations: 7.984 kB / 0.7785 GB, free: 6.309 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005741/0.4536, allocations: 443.2 kB / 0.7789 GB, free: 5.816 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4536, allocations: 0 / 0.7789 GB, free: 5.816 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.366e-05/0.4537, allocations: 11.98 kB / 0.7789 GB, free: 5.805 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.054e-05/0.4538, allocations: 32.78 kB / 0.7789 GB, free: 5.77 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-06/0.4538, allocations: 0 / 0.7789 GB, free: 5.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/0.4549, allocations: 1.414 MB / 0.7803 GB, free: 4.215 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4549, allocations: 3.938 kB / 0.7803 GB, free: 4.211 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002497/0.4552, allocations: 204.3 kB / 0.7805 GB, free: 3.992 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.26e-05/0.4553, allocations: 105 kB / 0.7806 GB, free: 3.871 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.135e-05/0.4553, allocations: 4 kB / 0.7806 GB, free: 3.867 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.4555, allocations: 7.984 kB / 0.7806 GB, free: 3.859 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.501e-05/0.4555, allocations: 11.98 kB / 0.7806 GB, free: 3.848 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.4555, allocations: 0 / 0.7806 GB, free: 3.848 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001458/0.4557, allocations: 150.1 kB / 0.7808 GB, free: 3.703 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4557, allocations: 0 / 0.7808 GB, free: 3.703 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0004471/0.4561, allocations: 51.89 kB / 0.7808 GB, free: 3.652 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (6): * Single equations (assignments): 5 * 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): 1 system {(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.0005834/0.4567, allocations: 0.7453 MB / 0.7816 GB, free: 2.875 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003865/0.4571, allocations: 207 kB / 0.7818 GB, free: 2.66 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.4571, allocations: 8.125 kB / 0.7818 GB, free: 2.652 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.4573, allocations: 150.6 kB / 0.7819 GB, free: 2.492 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004345/0.4578, allocations: 35.66 kB / 0.7819 GB, free: 2.461 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002472/0.4602, allocations: 2.049 MB / 0.7839 GB, free: 284 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004106/0.4607, allocations: 0.7552 MB / 0.7847 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.805e-05/0.4608, allocations: 33.45 kB / 0.7847 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.284e-05/0.4609, allocations: 51.42 kB / 0.7848 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of SimCode: time 2.61e-07/0.4609, allocations: 0 / 0.7848 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05305/0.5139, allocations: 3.734 MB / 0.7884 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.513/10.03, allocations: 15.12 kB / 0.7884 GB, free: 11.82 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)