Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00191/0.00191, allocations: 194 kB / 16.14 MB, free: 6.656 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.477/1.477, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.694/2.694, allocations: 437 MB / 0.7099 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001169, allocations: 67.89 kB / 0.8685 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6907/0.6919, allocations: 151.6 MB / 1.017 GB, free: 2.816 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005985/0.6979, allocations: 4.14 MB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002646/0.7006, allocations: 1.593 MB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002342/0.7009, allocations: 4 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001618/0.7025, allocations: 0.5529 MB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005877/0.7031, allocations: 227 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005776/0.7037, allocations: 191.7 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008425/0.7046, allocations: 0.7791 MB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005106/0.7051, allocations: 309.9 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000245/0.7054, allocations: 195.3 kB / 1.024 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004315/0.7058, allocations: 259.1 kB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.389e-05/0.7059, allocations: 24 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000367/0.7062, allocations: 203.6 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.7064, allocations: 147.6 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000203/0.7066, allocations: 187.1 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005613/0.7072, allocations: 0.5236 MB / 1.026 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.7072, allocations: 0 / 1.026 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of FrontEnd: time 6.62e-07/0.7072, allocations: 0 / 1.026 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.12e-05/0.7072, allocations: 0 / 1.026 GB, free: 9.484 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001478/0.7087, allocations: 0.6787 MB / 1.026 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.7088, allocations: 16.02 kB / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007634/0.7095, allocations: 104.4 kB / 1.026 GB, free: 8.637 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004041/0.7099, allocations: 300.1 kB / 1.027 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.638e-05/0.71, allocations: 55.27 kB / 1.027 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.997e-05/0.7101, allocations: 32.38 kB / 1.027 GB, free: 8.215 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008531/0.711, allocations: 0.5048 MB / 1.027 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.711, allocations: 0 / 1.027 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/0.711, allocations: 19.98 kB / 1.027 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.82e-05/0.7111, allocations: 36.97 kB / 1.027 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006955/0.7118, allocations: 379.7 kB / 1.028 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002566/0.7144, allocations: 2.2 MB / 1.03 GB, free: 4.828 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007228/0.7151, allocations: 270.6 kB / 1.03 GB, free: 4.555 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003516/0.7155, allocations: 144.8 kB / 1.03 GB, free: 4.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.7155, allocations: 11.98 kB / 1.03 GB, free: 4.398 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.7155, allocations: 38.52 kB / 1.03 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=19): time 1.613e-06/0.7155, allocations: 0 / 1.03 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001547/0.7171, allocations: 0.5614 MB / 1.031 GB, free: 3.742 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.7172, allocations: 55.36 kB / 1.031 GB, free: 3.676 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002391/0.7174, allocations: 232.9 kB / 1.031 GB, free: 3.434 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.616e-05/0.7175, allocations: 37.7 kB / 1.031 GB, free: 3.391 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.7176, allocations: 203.7 kB / 1.031 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.588e-05/0.7177, allocations: 67 kB / 1.031 GB, free: 3.121 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.831e-05/0.7178, allocations: 57.69 kB / 1.032 GB, free: 3.059 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.7179, allocations: 326.8 kB / 1.032 GB, free: 2.73 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000231/0.7181, allocations: 100.7 kB / 1.032 GB, free: 2.629 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002689/0.7184, allocations: 179.1 kB / 1.032 GB, free: 2.414 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000457/0.7189, allocations: 274.8 kB / 1.032 GB, free: 2.113 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.7189, allocations: 0 / 1.032 GB, free: 2.113 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008511/0.7197, allocations: 384.8 kB / 1.033 GB, free: 1.727 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.7198, allocations: 8 kB / 1.033 GB, free: 1.719 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.7198, allocations: 4 kB / 1.033 GB, free: 1.715 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005096/0.7203, allocations: 105.7 kB / 1.033 GB, free: 1.605 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.7205, allocations: 51.91 kB / 1.033 GB, free: 1.555 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00302/0.7235, allocations: 2.84 MB / 1.036 GB, free: 14.45 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.7238, allocations: 31.73 kB / 1.036 GB, free: 14.42 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.7238, allocations: 8 kB / 1.036 GB, free: 14.41 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003278/0.7242, allocations: 228.1 kB / 1.036 GB, free: 14.18 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002539/0.7244, allocations: 167.6 kB / 1.036 GB, free: 13.98 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004494/0.7249, allocations: 274.6 kB / 1.036 GB, free: 13.68 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.433e-06/0.7249, allocations: 0 / 1.036 GB, free: 13.68 MB / 0.795 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007872/0.7257, allocations: 357.7 kB / 1.037 GB, free: 13.32 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.7257, allocations: 10.34 kB / 1.037 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.7257, allocations: 4 kB / 1.037 GB, free: 13.31 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003022/0.726, allocations: 76.94 kB / 1.037 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.7263, allocations: 55.91 kB / 1.037 GB, free: 13.18 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/0.7281, allocations: 1.511 MB / 1.038 GB, free: 11.53 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.7284, allocations: 31.77 kB / 1.038 GB, free: 11.5 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.7284, allocations: 12 kB / 1.038 GB, free: 11.49 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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): 25 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001364/0.7286, allocations: 192.3 kB / 1.039 GB, free: 11.29 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.167e-05/0.7286, allocations: 27.72 kB / 1.039 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.131e-05/0.7287, allocations: 34.11 kB / 1.039 GB, free: 11.24 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.7287, allocations: 4 kB / 1.039 GB, free: 11.23 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.7287, allocations: 0 / 1.039 GB, free: 11.23 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.7287, allocations: 0 / 1.039 GB, free: 11.23 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001414/0.7301, allocations: 0.8248 MB / 1.039 GB, free: 10.33 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.7302, allocations: 0 / 1.039 GB, free: 10.33 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001471/0.7303, allocations: 31.98 kB / 1.039 GB, free: 10.3 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003727/0.7307, allocations: 97.69 kB / 1.039 GB, free: 10.2 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.7307, allocations: 8 kB / 1.04 GB, free: 10.19 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002811/0.7335, allocations: 2.806 MB / 1.042 GB, free: 7.109 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.7336, allocations: 4.031 kB / 1.042 GB, free: 7.105 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008047/0.7344, allocations: 416 kB / 1.043 GB, free: 6.672 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.7345, allocations: 120.7 kB / 1.043 GB, free: 6.535 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.268e-05/0.7345, allocations: 7.938 kB / 1.043 GB, free: 6.527 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.7347, allocations: 15.98 kB / 1.043 GB, free: 6.512 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.887e-05/0.7348, allocations: 19.91 kB / 1.043 GB, free: 6.492 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.62e-05/0.7348, allocations: 12 kB / 1.043 GB, free: 6.48 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000163/0.735, allocations: 160.5 kB / 1.043 GB, free: 6.324 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.735, allocations: 0 / 1.043 GB, free: 6.324 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007344/0.7358, allocations: 167.4 kB / 1.043 GB, free: 6.16 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 15 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001592/0.7359, allocations: 103.2 kB / 1.043 GB, free: 6.051 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00188/0.7378, allocations: 0.7524 MB / 1.044 GB, free: 5.262 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.7378, allocations: 0 / 1.044 GB, free: 5.262 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0007604/0.7386, allocations: 375.5 kB / 1.044 GB, free: 4.871 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004542/0.7391, allocations: 53.19 kB / 1.044 GB, free: 4.816 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.7402, allocations: 0.7273 MB / 1.045 GB, free: 4.059 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004199/0.7406, allocations: 0.8146 MB / 1.046 GB, free: 3.219 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001944/0.7408, allocations: 50.25 kB / 1.046 GB, free: 3.168 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.331e-05/0.7409, allocations: 19.44 kB / 1.046 GB, free: 3.148 MB / 0.795 GB Notification: Performance of SimCode: time 3e-07/0.7409, allocations: 0 / 1.046 GB, free: 3.148 MB / 0.795 GB Notification: Performance of Templates: time 0.008472/0.7494, allocations: 4.296 MB / 1.05 GB, free: 14.88 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)