Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.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.FixedVoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource",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.432/2.432, allocations: 387.1 MB / 399.7 MB, free: 9.52 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.001223/0.001223, allocations: 179.3 kB / 492.3 MB, free: 0.6172 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.541/1.541, allocations: 221.3 MB / 0.7871 GB, free: 12.93 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.0009377/0.0009376, allocations: 87.95 kB / 0.9267 GB, free: 13.99 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.38e-05/3.386e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2791, allocations: 142.4 MB / 1.213 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.953/1.232, allocations: 168.5 MB / 1.377 GB, free: 18.85 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/1.232, allocations: 98.55 kB / 1.377 GB, free: 18.85 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02714/1.26, allocations: 13.05 MB / 1.39 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.793e-06/1.26, allocations: 0 / 1.39 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.038e-05/1.26, allocations: 3.906 kB / 1.39 GB, free: 30.65 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006235/1.26, allocations: 463.6 kB / 1.39 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/1.26, allocations: 11.53 kB / 1.39 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.411e-05/1.26, allocations: 49.33 kB / 1.39 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006001/1.261, allocations: 65.8 kB / 1.391 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002549/1.261, allocations: 228.8 kB / 1.391 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/1.261, allocations: 11.33 kB / 1.391 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/1.261, allocations: 15.34 kB / 1.391 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003728/1.262, allocations: 270.8 kB / 1.391 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/1.262, allocations: 3.938 kB / 1.391 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/1.262, allocations: 10.5 kB / 1.391 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.963e-05/1.262, allocations: 19.5 kB / 1.391 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002828/1.262, allocations: 204.3 kB / 1.391 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/1.264, allocations: 1.585 MB / 1.393 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.674e-05/1.264, allocations: 70.31 kB / 1.393 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.031e-05/1.264, allocations: 43.27 kB / 1.393 GB, free: 28.28 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/1.264, allocations: 3.938 kB / 1.393 GB, free: 28.28 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/1.264, allocations: 46.31 kB / 1.393 GB, free: 28.23 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/1.264, allocations: 4 kB / 1.393 GB, free: 28.22 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0004273/1.264, allocations: 174.1 kB / 1.393 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/1.264, allocations: 84.91 kB / 1.393 GB, free: 28.03 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001725/1.265, allocations: 205 kB / 1.393 GB, free: 27.92 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/1.265, allocations: 25.7 kB / 1.393 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.344e-05/1.265, allocations: 162.7 kB / 1.394 GB, free: 27.75 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/1.265, allocations: 30.48 kB / 1.394 GB, free: 27.73 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.014e-05/1.265, allocations: 3.625 kB / 1.394 GB, free: 27.73 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001042/1.265, allocations: 328.8 kB / 1.394 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.32e-05/1.265, allocations: 79.41 kB / 1.394 GB, free: 27.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/1.265, allocations: 158.7 kB / 1.394 GB, free: 27.27 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/1.265, allocations: 101.1 kB / 1.394 GB, free: 27.25 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.265, allocations: 3.844 kB / 1.394 GB, free: 27.25 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003217/1.265, allocations: 273.5 kB / 1.394 GB, free: 27.16 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003552/1.266, allocations: 1.136 MB / 1.396 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/1.266, allocations: 3.906 kB / 1.396 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/1.266, allocations: 3.25 kB / 1.396 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002187/1.266, allocations: 60.64 kB / 1.396 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/1.266, allocations: 3.844 kB / 1.396 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/1.266, allocations: 22.19 kB / 1.396 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/1.266, allocations: 11.77 kB / 1.396 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.582e-06/1.266, allocations: 3.844 kB / 1.396 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002497/1.267, allocations: 225 kB / 1.396 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-06/1.267, allocations: 3.75 kB / 1.396 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.258e-06/1.267, allocations: 4.219 kB / 1.396 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/1.267, allocations: 54.38 kB / 1.396 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/1.267, allocations: 11.78 kB / 1.396 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/1.267, allocations: 19.36 kB / 1.396 GB, free: 25.85 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/1.267, allocations: 10.94 kB / 1.396 GB, free: 25.85 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.813e-05/1.267, allocations: 116.6 kB / 1.396 GB, free: 25.73 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5e-05/1.267, allocations: 15.5 kB / 1.396 GB, free: 25.73 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001791/1.267, allocations: 118.5 kB / 1.396 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/1.267, allocations: 0 / 1.396 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/1.267, allocations: 4 kB / 1.396 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/1.267, allocations: 7.797 kB / 1.396 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006407/1.268, allocations: 0.6109 MB / 1.397 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/1.268, allocations: 8.094 kB / 1.397 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.944e-05/1.268, allocations: 19.47 kB / 1.397 GB, free: 25.15 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/1.268, allocations: 3.844 kB / 1.397 GB, free: 25.15 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/1.268, allocations: 7.781 kB / 1.397 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/1.268, allocations: 7.828 kB / 1.397 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.268, allocations: 0 / 1.397 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/1.268, allocations: 417.2 kB / 1.397 GB, free: 24.74 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.12e-05/1.268, allocations: 103.3 kB / 1.397 GB, free: 24.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.82e-05/1.268, allocations: 3.844 kB / 1.397 GB, free: 24.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/1.269, allocations: 10.98 kB / 1.397 GB, free: 24.63 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.976e-05/1.269, allocations: 7.797 kB / 1.397 GB, free: 24.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/1.269, allocations: 3.688 kB / 1.397 GB, free: 24.62 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000132/1.269, allocations: 167.9 kB / 1.398 GB, free: 24.54 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/1.269, allocations: 0 / 1.398 GB, free: 24.54 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004771/1.269, allocations: 90.94 kB / 1.398 GB, free: 24.53 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008401/1.27, allocations: 1.451 MB / 1.399 GB, free: 23.12 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003619/1.271, allocations: 262.3 kB / 1.399 GB, free: 23.07 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/1.271, allocations: 448 / 1.399 GB, free: 23.07 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.889e-05/1.271, allocations: 46.17 kB / 1.399 GB, free: 23.06 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/1.271, allocations: 27.23 kB / 1.399 GB, free: 23.05 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006663/1.272, allocations: 345.7 kB / 1.4 GB, free: 22.8 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/1.272, allocations: 0.7301 MB / 1.4 GB, free: 22.09 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000187/1.272, allocations: 75.84 kB / 1.401 GB, free: 22.05 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.078e-05/1.272, allocations: 53.52 kB / 1.401 GB, free: 22.04 MB / 0.8386 GB Notification: Performance of SimCode: time 3.21e-07/1.272, allocations: 0 / 1.401 GB, free: 22.04 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01585/1.288, allocations: 3.311 MB / 1.404 GB, free: 20.1 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001526/1.288, allocations: 165.6 kB / 1.404 GB, free: 19.88 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.683/2.971, allocations: 4.062 kB / 1.404 GB, free: 19.88 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource_res.mat does not exist to compare? outputFormat=mat