Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.38/2.38, allocations: 390.5 MB / 398 MB, free: 10.89 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.001015/0.001015, allocations: 172.9 kB / 491.2 MB, free: 1.559 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.548/1.548, allocations: 221.5 MB / 0.7868 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 95.88 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.131e-05/2.104e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2771, allocations: 143 MB / 1.212 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9778/1.255, allocations: 171.6 MB / 1.38 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/1.255, allocations: 90.88 kB / 1.38 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04264/1.298, allocations: 18.54 MB / 1.398 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.454e-06/1.298, allocations: 4 kB / 1.398 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.386e-05/1.298, allocations: 7.844 kB / 1.398 GB, free: 26.71 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.001648/1.3, allocations: 0.612 MB / 1.399 GB, free: 26.19 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.687e-05/1.3, allocations: 7.625 kB / 1.399 GB, free: 26.19 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009415/1.301, allocations: 108.5 kB / 1.399 GB, free: 26.14 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004324/1.301, allocations: 280.1 kB / 1.399 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/1.301, allocations: 7.812 kB / 1.399 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.265e-05/1.301, allocations: 11.09 kB / 1.399 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000436/1.302, allocations: 245.5 kB / 1.399 GB, free: 25.87 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005117/1.302, allocations: 341.7 kB / 1.4 GB, free: 25.64 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/1.302, allocations: 3.938 kB / 1.4 GB, free: 25.63 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.729e-05/1.302, allocations: 0 / 1.4 GB, free: 25.63 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.456e-05/1.303, allocations: 31.42 kB / 1.4 GB, free: 25.6 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/1.305, allocations: 1.588 MB / 1.401 GB, free: 24.1 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007475/1.305, allocations: 386.1 kB / 1.402 GB, free: 23.8 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/1.306, allocations: 149.5 kB / 1.402 GB, free: 23.7 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001634/1.306, allocations: 89.11 kB / 1.402 GB, free: 23.6 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003158/1.306, allocations: 222.6 kB / 1.402 GB, free: 23.41 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=27): time 5.159e-06/1.306, allocations: 0 / 1.402 GB, free: 23.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0009672/1.307, allocations: 425 kB / 1.403 GB, free: 23.07 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/1.307, allocations: 85.2 kB / 1.403 GB, free: 22.96 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/1.307, allocations: 187.9 kB / 1.403 GB, free: 22.8 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.546e-05/1.307, allocations: 29.7 kB / 1.403 GB, free: 22.77 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/1.307, allocations: 171.6 kB / 1.403 GB, free: 22.62 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.465e-05/1.308, allocations: 88.47 kB / 1.403 GB, free: 22.55 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.015e-05/1.308, allocations: 0 / 1.403 GB, free: 22.55 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001277/1.308, allocations: 336.4 kB / 1.403 GB, free: 22.22 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/1.308, allocations: 121.3 kB / 1.404 GB, free: 22.15 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/1.308, allocations: 203.6 kB / 1.404 GB, free: 21.97 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002914/1.308, allocations: 165.6 kB / 1.404 GB, free: 21.86 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/1.308, allocations: 3.953 kB / 1.404 GB, free: 21.86 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007089/1.309, allocations: 423.2 kB / 1.404 GB, free: 21.54 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003626/1.309, allocations: 0.9052 MB / 1.405 GB, free: 20.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/1.309, allocations: 11.98 kB / 1.405 GB, free: 20.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002403/1.31, allocations: 38.75 kB / 1.405 GB, free: 20.53 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004026/1.31, allocations: 94.16 kB / 1.405 GB, free: 20.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/1.311, allocations: 1.439 MB / 1.407 GB, free: 18.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/1.312, allocations: 51.86 kB / 1.407 GB, free: 18.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.144e-05/1.312, allocations: 8 kB / 1.407 GB, free: 18.92 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/1.312, allocations: 4 kB / 1.407 GB, free: 18.91 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006324/1.312, allocations: 360.5 kB / 1.407 GB, free: 18.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/1.312, allocations: 0 / 1.407 GB, free: 18.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000118/1.313, allocations: 41.05 kB / 1.407 GB, free: 18.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003492/1.313, allocations: 91.61 kB / 1.407 GB, free: 18.53 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/1.314, allocations: 1.432 MB / 1.409 GB, free: 17.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003211/1.314, allocations: 43.8 kB / 1.409 GB, free: 17.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.064e-05/1.315, allocations: 11.31 kB / 1.409 GB, free: 17.02 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.0001596/1.315, allocations: 113 kB / 1.409 GB, free: 16.9 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005942/1.315, allocations: 355.5 kB / 1.409 GB, free: 16.62 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.939e-05/1.315, allocations: 27.66 kB / 1.409 GB, free: 16.59 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006679/1.316, allocations: 392.9 kB / 1.41 GB, free: 16.3 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/1.316, allocations: 7.938 kB / 1.41 GB, free: 16.29 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/1.316, allocations: 3.953 kB / 1.41 GB, free: 16.29 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/1.316, allocations: 3.984 kB / 1.41 GB, free: 16.28 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005923/1.317, allocations: 0.5067 MB / 1.41 GB, free: 15.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/1.317, allocations: 0 / 1.41 GB, free: 15.81 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000369/1.317, allocations: 87.64 kB / 1.41 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000122/1.317, allocations: 31.83 kB / 1.41 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.933e-05/1.317, allocations: 11.23 kB / 1.41 GB, free: 15.69 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009871/1.318, allocations: 1.352 MB / 1.412 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/1.318, allocations: 0 / 1.412 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006327/1.319, allocations: 0.4982 MB / 1.412 GB, free: 13.84 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/1.319, allocations: 131 kB / 1.412 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.556e-05/1.319, allocations: 0 / 1.412 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003321/1.319, allocations: 39.95 kB / 1.412 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/1.32, allocations: 38.83 kB / 1.412 GB, free: 13.63 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/1.32, allocations: 8 kB / 1.412 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001552/1.32, allocations: 158.5 kB / 1.412 GB, free: 13.49 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.1e-07/1.32, allocations: 0 / 1.412 GB, free: 13.49 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006643/1.32, allocations: 127.4 kB / 1.412 GB, free: 13.37 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.001123/1.322, allocations: 1.258 MB / 1.414 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001142/1.323, allocations: 0.8331 MB / 1.415 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/1.323, allocations: 0 / 1.415 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004053/1.323, allocations: 268.7 kB / 1.415 GB, free: 11.21 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/1.324, allocations: 43.66 kB / 1.415 GB, free: 11.18 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/1.325, allocations: 0.5192 MB / 1.415 GB, free: 10.68 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/1.326, allocations: 0.7961 MB / 1.416 GB, free: 9.859 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003833/1.326, allocations: 102 kB / 1.416 GB, free: 9.758 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001685/1.326, allocations: 88.83 kB / 1.416 GB, free: 9.727 MB / 0.8386 GB Notification: Performance of SimCode: time 7.81e-07/1.326, allocations: 0 / 1.416 GB, free: 9.727 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0357/1.362, allocations: 6.296 MB / 1.422 GB, free: 3.453 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002504/1.362, allocations: 166.7 kB / 1.423 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.127/3.489, allocations: 3.109 kB / 1.423 GB, free: 3.262 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat