Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.536/2.536, allocations: 387.4 MB / 394.9 MB, free: 13.37 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 176.8 kB / 487.4 MB, free: 5.051 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.761/1.761, allocations: 221.5 MB / 0.7824 GB, free: 1.035 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 91.78 kB / 0.9219 GB, free: 2.281 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.192e-05/2.193e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2662, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9447/1.211, allocations: 170.8 MB / 1.373 GB, free: 18.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/1.211, allocations: 88.47 kB / 1.373 GB, free: 18.18 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04237/1.254, allocations: 18.54 MB / 1.391 GB, free: 28.23 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.583e-06/1.254, allocations: 0 / 1.391 GB, free: 28.23 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.29e-05/1.254, allocations: 11.72 kB / 1.391 GB, free: 28.22 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001241/1.255, allocations: 0.6185 MB / 1.392 GB, free: 27.69 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/1.255, allocations: 7.75 kB / 1.392 GB, free: 27.69 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009133/1.256, allocations: 97.62 kB / 1.392 GB, free: 27.65 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003923/1.256, allocations: 277.4 kB / 1.392 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/1.256, allocations: 3.906 kB / 1.392 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.706e-05/1.257, allocations: 15.34 kB / 1.392 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004057/1.257, allocations: 244.5 kB / 1.392 GB, free: 27.38 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004821/1.257, allocations: 344.5 kB / 1.393 GB, free: 27.22 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/1.257, allocations: 3.938 kB / 1.393 GB, free: 27.22 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/1.258, allocations: 0 / 1.393 GB, free: 27.22 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.931e-05/1.258, allocations: 19.73 kB / 1.393 GB, free: 27.21 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001849/1.259, allocations: 1.603 MB / 1.394 GB, free: 25.97 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006839/1.26, allocations: 389 kB / 1.395 GB, free: 25.85 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001852/1.26, allocations: 150.8 kB / 1.395 GB, free: 25.82 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000152/1.26, allocations: 88.81 kB / 1.395 GB, free: 25.72 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002915/1.261, allocations: 218.7 kB / 1.395 GB, free: 25.61 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=27): time 2.194e-06/1.261, allocations: 0 / 1.395 GB, free: 25.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.000925/1.262, allocations: 435.5 kB / 1.395 GB, free: 25.45 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/1.262, allocations: 80.92 kB / 1.396 GB, free: 25.35 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001717/1.262, allocations: 183.3 kB / 1.396 GB, free: 25.25 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/1.262, allocations: 29.55 kB / 1.396 GB, free: 25.21 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.686e-05/1.262, allocations: 168.5 kB / 1.396 GB, free: 25.08 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.261e-05/1.262, allocations: 92.56 kB / 1.396 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-05/1.262, allocations: 0 / 1.396 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001205/1.262, allocations: 336 kB / 1.396 GB, free: 24.69 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/1.262, allocations: 126.3 kB / 1.396 GB, free: 24.68 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/1.263, allocations: 194.5 kB / 1.397 GB, free: 24.59 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002719/1.263, allocations: 167.5 kB / 1.397 GB, free: 24.55 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/1.263, allocations: 3.688 kB / 1.397 GB, free: 24.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006958/1.264, allocations: 429.3 kB / 1.397 GB, free: 24.42 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004117/1.264, allocations: 0.9072 MB / 1.398 GB, free: 23.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/1.264, allocations: 3.844 kB / 1.398 GB, free: 23.47 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002336/1.264, allocations: 37.95 kB / 1.398 GB, free: 23.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003939/1.265, allocations: 93.14 kB / 1.398 GB, free: 23.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/1.266, allocations: 1.429 MB / 1.4 GB, free: 22.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003505/1.266, allocations: 58.08 kB / 1.4 GB, free: 22.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.505e-05/1.267, allocations: 11.64 kB / 1.4 GB, free: 22.09 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/1.267, allocations: 3.906 kB / 1.4 GB, free: 22.09 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006077/1.267, allocations: 355.7 kB / 1.4 GB, free: 22.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/1.267, allocations: 7.766 kB / 1.4 GB, free: 22.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001229/1.267, allocations: 39.53 kB / 1.4 GB, free: 22 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003413/1.268, allocations: 85.16 kB / 1.4 GB, free: 21.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/1.269, allocations: 1.423 MB / 1.401 GB, free: 20.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000347/1.269, allocations: 50.92 kB / 1.402 GB, free: 20.64 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/1.269, allocations: 15.22 kB / 1.402 GB, free: 20.64 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000182/1.269, allocations: 117.5 kB / 1.402 GB, free: 20.53 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006132/1.27, allocations: 352.3 kB / 1.402 GB, free: 20.42 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.491e-05/1.27, allocations: 22.69 kB / 1.402 GB, free: 20.41 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006407/1.271, allocations: 391.7 kB / 1.402 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/1.271, allocations: 3.844 kB / 1.402 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/1.271, allocations: 0 / 1.402 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/1.271, allocations: 7.766 kB / 1.402 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005875/1.271, allocations: 0.509 MB / 1.403 GB, free: 19.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/1.271, allocations: 7.938 kB / 1.403 GB, free: 19.89 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003597/1.272, allocations: 77.98 kB / 1.403 GB, free: 19.87 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001154/1.272, allocations: 34.52 kB / 1.403 GB, free: 19.86 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.552e-05/1.272, allocations: 3.75 kB / 1.403 GB, free: 19.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/1.273, allocations: 1.362 MB / 1.404 GB, free: 18.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/1.273, allocations: 7.891 kB / 1.404 GB, free: 18.58 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006387/1.274, allocations: 0.4939 MB / 1.405 GB, free: 18.29 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/1.274, allocations: 134 kB / 1.405 GB, free: 18.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.564e-05/1.274, allocations: 3.969 kB / 1.405 GB, free: 18.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003077/1.274, allocations: 39.08 kB / 1.405 GB, free: 18.16 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/1.274, allocations: 29.73 kB / 1.405 GB, free: 18.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-05/1.274, allocations: 15.12 kB / 1.405 GB, free: 18.14 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001319/1.274, allocations: 158.8 kB / 1.405 GB, free: 18.05 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.3e-07/1.274, allocations: 0 / 1.405 GB, free: 18.05 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.00064/1.275, allocations: 131.1 kB / 1.405 GB, free: 18.04 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001012/1.276, allocations: 1.263 MB / 1.407 GB, free: 17.01 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.00109/1.277, allocations: 0.8203 MB / 1.407 GB, free: 16.61 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/1.277, allocations: 256 / 1.407 GB, free: 16.61 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003504/1.278, allocations: 279.7 kB / 1.408 GB, free: 16.48 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/1.278, allocations: 43.3 kB / 1.408 GB, free: 16.46 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/1.279, allocations: 0.5246 MB / 1.408 GB, free: 16.17 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/1.279, allocations: 0.7924 MB / 1.409 GB, free: 15.43 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003054/1.28, allocations: 103.4 kB / 1.409 GB, free: 15.38 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/1.28, allocations: 82.94 kB / 1.409 GB, free: 15.36 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.28, allocations: 0 / 1.409 GB, free: 15.36 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02552/1.305, allocations: 6.291 MB / 1.415 GB, free: 10.38 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/1.306, allocations: 161.8 kB / 1.415 GB, free: 10.19 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.069/3.374, allocations: 3.938 kB / 1.415 GB, free: 10.19 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat