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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008426/0.0008426, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008608/0.0008608, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8955/0.8955, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001403/0.001403, allocations: 230.5 kB / 259.4 MB, free: 13.03 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6846/0.6846, allocations: 138.4 MB / 454.3 MB, free: 30.04 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.253e-06/1.253e-06, allocations: 0 / 0.6463 GB, free: 1.918 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.476e-05/1.601e-05, allocations: 5.375 kB / 0.6463 GB, free: 1.914 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.2386/0.2386, allocations: 3.739 MB / 0.6499 GB, free: 55.53 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.001591/0.2402, allocations: 1.673 MB / 0.6516 GB, free: 54.85 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.2403, allocations: 10.56 kB / 0.6516 GB, free: 54.84 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0006963/0.241, allocations: 497.3 kB / 0.652 GB, free: 54.64 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.000277/0.2413, allocations: 231.7 kB / 0.6523 GB, free: 54.5 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.2416, allocations: 211.8 kB / 0.6525 GB, free: 54.4 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0003206/0.2419, allocations: 493.7 kB / 0.6529 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003461/0.2422, allocations: 291.1 kB / 0.6532 GB, free: 54.04 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001985/0.2424, allocations: 272.3 kB / 0.6535 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002642/0.2427, allocations: 199.1 kB / 0.6537 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 3.701e-05/0.2427, allocations: 28.06 kB / 0.6537 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000214/0.2429, allocations: 223.4 kB / 0.6539 GB, free: 53.8 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 8.338e-05/0.243, allocations: 133.5 kB / 0.654 GB, free: 53.74 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 8.492e-05/0.2431, allocations: 122.7 kB / 0.6541 GB, free: 53.7 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0004164/0.2435, allocations: 0.5153 MB / 0.6546 GB, free: 53.52 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.2435, allocations: 1.656 kB / 0.6546 GB, free: 53.52 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.223e-06/0.2435, allocations: 0 / 0.6546 GB, free: 53.52 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.2435, allocations: 0 / 0.6546 GB, free: 53.52 MB / 0.5573 GB 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.0006183/0.2442, allocations: 0.5686 MB / 0.6552 GB, free: 53.09 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.2442, allocations: 11.69 kB / 0.6552 GB, free: 53.09 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.666e-05/0.2442, allocations: 66.98 kB / 0.6553 GB, free: 53.03 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004688/0.2447, allocations: 130.8 kB / 0.6554 GB, free: 53.01 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.2449, allocations: 237.4 kB / 0.6556 GB, free: 52.82 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.245, allocations: 20.59 kB / 0.6557 GB, free: 52.82 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.245, allocations: 26.06 kB / 0.6557 GB, free: 52.81 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004277/0.2454, allocations: 0.5835 MB / 0.6562 GB, free: 52.41 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2454, allocations: 2.312 kB / 0.6562 GB, free: 52.41 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.2455, allocations: 19.41 kB / 0.6563 GB, free: 52.39 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.433e-05/0.2455, allocations: 27.16 kB / 0.6563 GB, free: 52.39 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003105/0.2458, allocations: 322.7 kB / 0.6566 GB, free: 52.29 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.2468, allocations: 1.568 MB / 0.6581 GB, free: 51.05 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002255/0.247, allocations: 164.4 kB / 0.6583 GB, free: 50.98 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/0.2472, allocations: 101.1 kB / 0.6584 GB, free: 50.94 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 7.554e-06/0.2472, allocations: 2.969 kB / 0.6584 GB, free: 50.94 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.214e-05/0.2472, allocations: 32.62 kB / 0.6584 GB, free: 50.9 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.2472, allocations: 1.438 kB / 0.6584 GB, free: 50.9 MB / 0.5573 GB Notification: Performance of matching and sorting (n=14): time 0.0003607/0.2476, allocations: 228.6 kB / 0.6586 GB, free: 50.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.841e-05/0.2476, allocations: 58.2 kB / 0.6587 GB, free: 50.73 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.2478, allocations: 273.1 kB / 0.659 GB, free: 50.58 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 9.979e-06/0.2478, allocations: 27.7 kB / 0.659 GB, free: 50.55 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 6.198e-05/0.2478, allocations: 209.4 kB / 0.6592 GB, free: 50.37 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/0.2478, allocations: 54.28 kB / 0.6592 GB, free: 50.32 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.423e-05/0.2479, allocations: 55.78 kB / 0.6593 GB, free: 50.28 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.637e-05/0.2479, allocations: 336.2 kB / 0.6596 GB, free: 49.96 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.318e-05/0.248, allocations: 57.78 kB / 0.6597 GB, free: 49.94 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.061e-05/0.2481, allocations: 150.6 kB / 0.6598 GB, free: 49.81 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001499/0.2482, allocations: 213.7 kB / 0.66 GB, free: 49.65 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.2482, allocations: 2.406 kB / 0.66 GB, free: 49.65 MB / 0.5573 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002579/0.2485, allocations: 261.9 kB / 0.6603 GB, free: 49.53 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.2485, allocations: 10.44 kB / 0.6603 GB, free: 49.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.2485, allocations: 4.141 kB / 0.6603 GB, free: 49.53 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001132/0.2486, allocations: 27.28 kB / 0.6603 GB, free: 49.52 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.2487, allocations: 46.69 kB / 0.6603 GB, free: 49.51 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005302/0.2493, allocations: 1.316 MB / 0.6616 GB, free: 48.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.687e-05/0.2493, allocations: 28.38 kB / 0.6617 GB, free: 48.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.2494, allocations: 17.11 kB / 0.6617 GB, free: 48.19 MB / 0.5573 GB 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 9.25e-05/0.2494, allocations: 164.7 kB / 0.6618 GB, free: 48.05 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.2495, allocations: 25.98 kB / 0.6619 GB, free: 48.04 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.408e-05/0.2495, allocations: 31.97 kB / 0.6619 GB, free: 48.02 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2495, allocations: 2.844 kB / 0.6619 GB, free: 48.02 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2495, allocations: 0 / 0.6619 GB, free: 48.02 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2495, allocations: 1.781 kB / 0.6619 GB, free: 48.02 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005115/0.25, allocations: 0.6021 MB / 0.6625 GB, free: 47.58 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.25, allocations: 4.047 kB / 0.6625 GB, free: 47.58 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.883e-05/0.2501, allocations: 32.14 kB / 0.6625 GB, free: 47.57 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.275e-05/0.2501, allocations: 19.98 kB / 0.6625 GB, free: 47.57 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.2501, allocations: 5.875 kB / 0.6625 GB, free: 47.56 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004361/0.2506, allocations: 1.318 MB / 0.6638 GB, free: 46.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2506, allocations: 2.781 kB / 0.6638 GB, free: 46.27 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001874/0.2508, allocations: 308.2 kB / 0.6641 GB, free: 46.03 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 5.185e-05/0.2508, allocations: 42.64 kB / 0.6642 GB, free: 46 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.2508, allocations: 5.094 kB / 0.6642 GB, free: 46 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.823e-05/0.2509, allocations: 11.89 kB / 0.6642 GB, free: 46 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.309e-05/0.2509, allocations: 22.77 kB / 0.6642 GB, free: 45.99 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.2509, allocations: 6.281 kB / 0.6642 GB, free: 45.99 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001084/0.2511, allocations: 190.5 kB / 0.6644 GB, free: 45.88 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.1e-08/0.2511, allocations: 3.938 kB / 0.6644 GB, free: 45.88 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0002434/0.2513, allocations: 79.16 kB / 0.6645 GB, free: 45.86 MB / 0.5573 GB 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.0002911/0.2516, allocations: 0.8489 MB / 0.6653 GB, free: 45.08 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0002891/0.2519, allocations: 267.2 kB / 0.6655 GB, free: 44.92 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2519, allocations: 1.594 kB / 0.6656 GB, free: 44.92 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.252, allocations: 178.2 kB / 0.6657 GB, free: 44.79 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/0.2523, allocations: 68.62 kB / 0.6658 GB, free: 44.77 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.2542, allocations: 2.714 MB / 0.6684 GB, free: 42.79 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001346/0.2543, allocations: 184.3 kB / 0.6686 GB, free: 42.71 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0001041/0.2544, allocations: 43.42 kB / 0.6687 GB, free: 42.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.243e-05/0.2545, allocations: 84.69 kB / 0.6687 GB, free: 42.64 MB / 0.5573 GB Notification: Performance of SimCode: time 6.51e-07/0.2545, allocations: 4 kB / 0.6687 GB, free: 42.64 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01894/0.2734, allocations: 6.263 MB / 0.6749 GB, free: 41.43 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.919/7.192, allocations: 13.77 kB / 0.6749 GB, free: 41.42 MB / 0.5573 GB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.741473426111042] Failed to read output from testmodel.py, exit status != 0: 7.27729585301131 7.286078482 7.040590341 Calling exit ...