Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.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: translateModel(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 117.5 kB / 16.37 MB, free: 6.004 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.00114/0.00114, allocations: 193.3 kB / 17.31 MB, free: 5.613 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.279/1.279, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002143/0.002143, allocations: 274.3 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9233/0.9233, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 95.05 kB / 0.5967 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1439, allocations: 86.97 MB / 0.6816 GB, free: 7.484 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.004973/0.1489, allocations: 3.81 MB / 0.6853 GB, free: 3.656 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002369/0.1513, allocations: 1.733 MB / 0.687 GB, free: 1.914 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.1514, allocations: 11.94 kB / 0.687 GB, free: 1.902 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.1527, allocations: 0.5008 MB / 0.6875 GB, free: 1.402 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004325/0.1532, allocations: 218.9 kB / 0.6877 GB, free: 1.188 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004507/0.1536, allocations: 215.4 kB / 0.6879 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004385/0.1541, allocations: 470.4 kB / 0.6884 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004907/0.1546, allocations: 361.1 kB / 0.6887 GB, free: 168 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2508/0.4054, allocations: 188.4 kB / 0.6889 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006829/0.4061, allocations: 216.8 kB / 0.6891 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.4063, allocations: 28.47 kB / 0.6891 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006548/0.4069, allocations: 244.8 kB / 0.6894 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001854/0.4071, allocations: 129.4 kB / 0.6895 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002427/0.4074, allocations: 172.1 kB / 0.6897 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008065/0.4082, allocations: 0.4955 MB / 0.6901 GB, free: 12.84 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.4082, allocations: 0 / 0.6901 GB, free: 12.84 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4082, allocations: 0 / 0.6901 GB, free: 12.84 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.4082, allocations: 0.5312 kB / 0.6901 GB, free: 12.84 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00119/0.4094, allocations: 0.6332 MB / 0.6908 GB, free: 12.38 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.4095, allocations: 10.44 kB / 0.6908 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001646/0.4112, allocations: 137.7 kB / 0.6909 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005464/0.4117, allocations: 298.3 kB / 0.6912 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.101e-05/0.4118, allocations: 20.5 kB / 0.6912 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.874e-05/0.4118, allocations: 25.75 kB / 0.6912 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009656/0.4128, allocations: 461.6 kB / 0.6917 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.4129, allocations: 8.688 kB / 0.6917 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-05/0.4129, allocations: 16.91 kB / 0.6917 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.822e-05/0.413, allocations: 31.62 kB / 0.6917 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007114/0.4137, allocations: 317.1 kB / 0.692 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002637/0.4164, allocations: 2.175 MB / 0.6942 GB, free: 10.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004965/0.4169, allocations: 264.4 kB / 0.6944 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003514/0.4173, allocations: 111.2 kB / 0.6945 GB, free: 10.19 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.4173, allocations: 3.5 kB / 0.6945 GB, free: 10.19 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.89e-05/0.4173, allocations: 32.75 kB / 0.6946 GB, free: 10.15 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 2.545e-06/0.4173, allocations: 0 / 0.6946 GB, free: 10.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008021/0.4181, allocations: 300.3 kB / 0.6948 GB, free: 10.01 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.428e-05/0.4182, allocations: 54.59 kB / 0.6949 GB, free: 9.945 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000388/0.4186, allocations: 266.1 kB / 0.6951 GB, free: 9.844 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.4186, allocations: 31.08 kB / 0.6952 GB, free: 9.809 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.4187, allocations: 212.2 kB / 0.6954 GB, free: 9.668 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.271e-05/0.4188, allocations: 49.48 kB / 0.6954 GB, free: 9.637 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.4189, allocations: 50.27 kB / 0.6955 GB, free: 9.613 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.632e-05/0.419, allocations: 336.8 kB / 0.6958 GB, free: 9.297 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.4192, allocations: 58.66 kB / 0.6958 GB, free: 9.297 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/0.4194, allocations: 150.2 kB / 0.696 GB, free: 9.191 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003309/0.4197, allocations: 219.7 kB / 0.6962 GB, free: 9.086 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.4197, allocations: 0.8438 kB / 0.6962 GB, free: 9.086 MB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005566/0.4203, allocations: 267.8 kB / 0.6965 GB, free: 9.027 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.4203, allocations: 6.625 kB / 0.6965 GB, free: 9.027 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.4203, allocations: 3 kB / 0.6965 GB, free: 9.027 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001878/0.4205, allocations: 27.02 kB / 0.6965 GB, free: 9.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002835/0.4208, allocations: 48.44 kB / 0.6965 GB, free: 9.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/0.4219, allocations: 1.416 MB / 0.6979 GB, free: 7.672 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/0.4221, allocations: 31.06 kB / 0.6979 GB, free: 7.652 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.4222, allocations: 12.91 kB / 0.698 GB, free: 7.648 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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.0001792/0.4224, allocations: 168.7 kB / 0.6981 GB, free: 7.531 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.34e-05/0.4224, allocations: 24.67 kB / 0.6981 GB, free: 7.52 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.011e-05/0.4225, allocations: 29.48 kB / 0.6982 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.4225, allocations: 5.531 kB / 0.6982 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4225, allocations: 1.562 kB / 0.6982 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.4226, allocations: 1.547 kB / 0.6982 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.4238, allocations: 0.6976 MB / 0.6989 GB, free: 7.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.4238, allocations: 1.25 kB / 0.6989 GB, free: 7.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.4239, allocations: 25.48 kB / 0.6989 GB, free: 7.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001097/0.424, allocations: 27.64 kB / 0.6989 GB, free: 7.078 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.4241, allocations: 9.734 kB / 0.6989 GB, free: 7.074 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009486/0.425, allocations: 1.414 MB / 0.7003 GB, free: 5.727 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.4251, allocations: 4.5 kB / 0.7003 GB, free: 5.727 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004143/0.4255, allocations: 319.8 kB / 0.7006 GB, free: 5.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.4256, allocations: 115.7 kB / 0.7007 GB, free: 5.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.513e-05/0.4257, allocations: 6.797 kB / 0.7007 GB, free: 5.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.4259, allocations: 7.859 kB / 0.7007 GB, free: 5.41 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.752e-05/0.426, allocations: 28.98 kB / 0.7008 GB, free: 5.398 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.426, allocations: 5.812 kB / 0.7008 GB, free: 5.398 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002547/0.4263, allocations: 193.5 kB / 0.701 GB, free: 5.316 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4263, allocations: 0 / 0.701 GB, free: 5.316 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006833/0.427, allocations: 71.75 kB / 0.701 GB, free: 5.305 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0001128/0.4271, allocations: 102.7 kB / 0.7011 GB, free: 5.215 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005548/0.4277, allocations: 281.3 kB / 0.7014 GB, free: 5.062 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.4277, allocations: 0.9375 kB / 0.7014 GB, free: 5.062 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001898/0.4279, allocations: 181.8 kB / 0.7016 GB, free: 4.938 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004712/0.4284, allocations: 66.42 kB / 0.7016 GB, free: 4.914 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007748/0.4292, allocations: 0.5323 MB / 0.7021 GB, free: 4.574 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003244/0.4295, allocations: 0.7948 MB / 0.7029 GB, free: 3.863 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001972/0.4297, allocations: 41.31 kB / 0.703 GB, free: 3.859 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.467e-05/0.4298, allocations: 21.62 kB / 0.703 GB, free: 3.852 MB / 494.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4298, allocations: 0 / 0.703 GB, free: 3.852 MB / 494.1 MB Notification: Performance of Templates: time 0.009317/0.4391, allocations: 2.697 MB / 0.7056 GB, free: 3.688 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)