Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_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.218/2.218, allocations: 387.1 MB / 399.7 MB, free: 9.527 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.001203/0.001203, allocations: 176.5 kB / 492.3 MB, free: 0.6406 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.649/1.649, allocations: 221.3 MB / 0.7872 GB, free: 12.94 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.0009213/0.0009212, allocations: 91.89 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.515e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2932, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9537/1.247, allocations: 172.9 MB / 1.381 GB, free: 18.89 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/1.247, allocations: 97.05 kB / 1.381 GB, free: 18.89 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04236/1.29, allocations: 19.27 MB / 1.4 GB, free: 25.48 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.473e-06/1.29, allocations: 4 kB / 1.4 GB, free: 25.48 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.871e-05/1.29, allocations: 8 kB / 1.4 GB, free: 25.47 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.00124/1.291, allocations: 0.614 MB / 1.401 GB, free: 24.83 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/1.291, allocations: 8.031 kB / 1.401 GB, free: 24.82 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/1.291, allocations: 63.92 kB / 1.401 GB, free: 24.77 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008502/1.292, allocations: 95.53 kB / 1.401 GB, free: 24.67 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003793/1.292, allocations: 283.3 kB / 1.401 GB, free: 24.38 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/1.292, allocations: 14.31 kB / 1.401 GB, free: 24.37 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.362e-05/1.293, allocations: 20.14 kB / 1.401 GB, free: 24.36 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/1.293, allocations: 375.4 kB / 1.402 GB, free: 24.06 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/1.293, allocations: 0 / 1.402 GB, free: 24.06 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.448e-05/1.293, allocations: 10.06 kB / 1.402 GB, free: 24.05 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.951e-05/1.293, allocations: 27.3 kB / 1.402 GB, free: 24.03 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004745/1.294, allocations: 316.9 kB / 1.402 GB, free: 23.82 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/1.295, allocations: 1.656 MB / 1.404 GB, free: 22.25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007274/1.296, allocations: 400.2 kB / 1.404 GB, free: 21.95 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/1.296, allocations: 159.8 kB / 1.404 GB, free: 21.84 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001483/1.297, allocations: 89.06 kB / 1.404 GB, free: 21.73 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003287/1.297, allocations: 227.8 kB / 1.404 GB, free: 21.54 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=27): time 2.154e-06/1.297, allocations: 0 / 1.404 GB, free: 21.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0008815/1.298, allocations: 433.3 kB / 1.405 GB, free: 21.19 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/1.298, allocations: 84.8 kB / 1.405 GB, free: 21.09 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/1.298, allocations: 203.9 kB / 1.405 GB, free: 20.91 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/1.298, allocations: 29.45 kB / 1.405 GB, free: 20.88 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.079e-05/1.298, allocations: 166.1 kB / 1.405 GB, free: 20.75 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.405e-05/1.298, allocations: 90.28 kB / 1.405 GB, free: 20.67 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.847e-05/1.298, allocations: 7.688 kB / 1.405 GB, free: 20.67 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001087/1.298, allocations: 346.7 kB / 1.406 GB, free: 20.33 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/1.299, allocations: 130.2 kB / 1.406 GB, free: 20.25 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/1.299, allocations: 211.2 kB / 1.406 GB, free: 20.07 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/1.299, allocations: 181.9 kB / 1.406 GB, free: 19.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/1.299, allocations: 0 / 1.406 GB, free: 19.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006958/1.3, allocations: 484.7 kB / 1.407 GB, free: 19.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002785/1.3, allocations: 0.8973 MB / 1.408 GB, free: 18.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/1.3, allocations: 0 / 1.408 GB, free: 18.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002215/1.3, allocations: 44.25 kB / 1.408 GB, free: 18.56 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003847/1.301, allocations: 91.86 kB / 1.408 GB, free: 18.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001148/1.302, allocations: 1.504 MB / 1.409 GB, free: 16.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003496/1.302, allocations: 51.67 kB / 1.409 GB, free: 16.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/1.302, allocations: 15.81 kB / 1.409 GB, free: 16.87 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/1.302, allocations: 5.25 kB / 1.409 GB, free: 16.86 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006084/1.303, allocations: 413.2 kB / 1.41 GB, free: 16.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/1.303, allocations: 4 kB / 1.41 GB, free: 16.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001221/1.303, allocations: 39.45 kB / 1.41 GB, free: 16.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003357/1.303, allocations: 86.94 kB / 1.41 GB, free: 16.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001063/1.305, allocations: 1.481 MB / 1.411 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/1.305, allocations: 51.66 kB / 1.411 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/1.305, allocations: 15.73 kB / 1.411 GB, free: 14.85 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.0001434/1.305, allocations: 127.8 kB / 1.411 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.311e-05/1.305, allocations: 23.72 kB / 1.411 GB, free: 14.7 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006602/1.306, allocations: 400.5 kB / 1.412 GB, free: 14.41 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/1.306, allocations: 7.984 kB / 1.412 GB, free: 14.41 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/1.306, allocations: 4 kB / 1.412 GB, free: 14.4 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/1.306, allocations: 0 / 1.412 GB, free: 14.4 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006198/1.306, allocations: 0.5638 MB / 1.412 GB, free: 13.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/1.306, allocations: 96 / 1.412 GB, free: 13.87 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003576/1.307, allocations: 87.42 kB / 1.412 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001147/1.307, allocations: 32.45 kB / 1.413 GB, free: 13.76 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/1.307, allocations: 11.55 kB / 1.413 GB, free: 13.75 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001025/1.308, allocations: 1.409 MB / 1.414 GB, free: 12.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/1.308, allocations: 0 / 1.414 GB, free: 12.29 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006535/1.309, allocations: 0.505 MB / 1.414 GB, free: 11.83 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001617/1.309, allocations: 142.8 kB / 1.415 GB, free: 11.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/1.309, allocations: 7.562 kB / 1.415 GB, free: 11.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003176/1.309, allocations: 43.58 kB / 1.415 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/1.309, allocations: 31.25 kB / 1.415 GB, free: 11.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/1.309, allocations: 15.02 kB / 1.415 GB, free: 11.6 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001594/1.31, allocations: 167.7 kB / 1.415 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.31, allocations: 0 / 1.415 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006296/1.31, allocations: 148.3 kB / 1.415 GB, free: 11.33 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.001138/1.311, allocations: 1.274 MB / 1.416 GB, free: 10.11 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001403/1.313, allocations: 0.8687 MB / 1.417 GB, free: 9.352 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/1.313, allocations: 4.25 kB / 1.417 GB, free: 9.348 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004211/1.313, allocations: 288 kB / 1.417 GB, free: 9.105 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/1.314, allocations: 35.34 kB / 1.417 GB, free: 9.082 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001378/1.315, allocations: 0.5484 MB / 1.418 GB, free: 8.57 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005149/1.315, allocations: 0.7984 MB / 1.419 GB, free: 7.758 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004268/1.316, allocations: 97.98 kB / 1.419 GB, free: 7.66 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/1.316, allocations: 91.39 kB / 1.419 GB, free: 7.621 MB / 0.8386 GB Notification: Performance of SimCode: time 2.195e-06/1.316, allocations: 3.938 kB / 1.419 GB, free: 7.617 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02209/1.338, allocations: 6.857 MB / 1.426 GB, free: 0.9844 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001961/1.338, allocations: 209 kB / 1.426 GB, free: 0.7578 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.09/3.428, allocations: 0 / 1.426 GB, free: 0.7578 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat