Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",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.471/2.471, allocations: 390.5 MB / 398 MB, free: 10.93 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.001404/0.001404, allocations: 184.9 kB / 491.2 MB, free: 1.555 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.515/1.515, allocations: 221.5 MB / 0.7868 GB, free: 13.24 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.0008811/0.0008811, allocations: 87.95 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.753e-05/1.755e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2905, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9293/1.22, allocations: 171.7 MB / 1.38 GB, free: 17.09 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/1.22, allocations: 90.06 kB / 1.38 GB, free: 17.09 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.08571/1.306, allocations: 39.81 MB / 1.419 GB, free: 8.902 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.793e-06/1.306, allocations: 0 / 1.419 GB, free: 8.902 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.834e-05/1.306, allocations: 27.83 kB / 1.419 GB, free: 8.879 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002521/1.309, allocations: 0.9607 MB / 1.42 GB, free: 7.93 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/1.309, allocations: 12.03 kB / 1.42 GB, free: 7.918 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001768/1.31, allocations: 234.6 kB / 1.42 GB, free: 7.688 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/1.311, allocations: 0.5343 MB / 1.421 GB, free: 7.188 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.471e-05/1.311, allocations: 20 kB / 1.421 GB, free: 7.168 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001364/1.312, allocations: 44 kB / 1.421 GB, free: 7.125 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001041/1.313, allocations: 0.5982 MB / 1.421 GB, free: 6.738 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/1.314, allocations: 1.019 MB / 1.422 GB, free: 5.789 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.166e-05/1.314, allocations: 7.938 kB / 1.422 GB, free: 5.781 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.057e-05/1.314, allocations: 4 kB / 1.422 GB, free: 5.777 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.202e-05/1.314, allocations: 54.84 kB / 1.423 GB, free: 5.73 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00552/1.32, allocations: 5.765 MB / 1.428 GB, free: 136 kB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008775/1.321, allocations: 0.5164 MB / 1.429 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003919/1.321, allocations: 314.8 kB / 1.429 GB, free: 15.58 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.26e-05/1.321, allocations: 12.42 kB / 1.429 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/1.321, allocations: 45.81 kB / 1.429 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=47): time 3.297e-06/1.321, allocations: 0 / 1.429 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of matching and sorting (n=48): time 0.002101/1.323, allocations: 1.156 MB / 1.43 GB, free: 14.61 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/1.323, allocations: 59.84 kB / 1.43 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004747/1.324, allocations: 394.6 kB / 1.431 GB, free: 14.23 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/1.324, allocations: 25.7 kB / 1.431 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002521/1.324, allocations: 414.5 kB / 1.431 GB, free: 13.89 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/1.324, allocations: 161.4 kB / 1.431 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-05/1.324, allocations: 0 / 1.431 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001275/1.325, allocations: 371.8 kB / 1.432 GB, free: 13.4 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003204/1.325, allocations: 246.9 kB / 1.432 GB, free: 13.25 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004538/1.325, allocations: 442.7 kB / 1.432 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004281/1.326, allocations: 318.4 kB / 1.432 GB, free: 12.63 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/1.326, allocations: 4 kB / 1.432 GB, free: 12.63 MB / 0.8542 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001553/1.327, allocations: 0.9629 MB / 1.433 GB, free: 11.88 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/1.327, allocations: 8.094 kB / 1.433 GB, free: 11.87 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/1.327, allocations: 12 kB / 1.433 GB, free: 11.86 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008057/1.328, allocations: 266.5 kB / 1.434 GB, free: 11.63 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004962/1.329, allocations: 115.2 kB / 1.434 GB, free: 11.52 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008108/1.337, allocations: 6.323 MB / 1.44 GB, free: 5.352 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/1.338, allocations: 19.97 kB / 1.44 GB, free: 5.332 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/1.338, allocations: 34.61 kB / 1.44 GB, free: 5.305 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000262/1.338, allocations: 128.8 kB / 1.44 GB, free: 5.172 MB / 0.8542 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00217/1.34, allocations: 0.7727 MB / 1.441 GB, free: 4.574 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002704/1.341, allocations: 67.25 kB / 1.441 GB, free: 4.508 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002249/1.343, allocations: 0.8304 MB / 1.442 GB, free: 3.898 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/1.343, allocations: 4 kB / 1.442 GB, free: 3.895 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/1.343, allocations: 4 kB / 1.442 GB, free: 3.891 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/1.343, allocations: 0 / 1.442 GB, free: 3.891 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003836/1.347, allocations: 1.57 MB / 1.443 GB, free: 2.633 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/1.347, allocations: 4.234 kB / 1.443 GB, free: 2.629 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004416/1.347, allocations: 67.5 kB / 1.443 GB, free: 2.566 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/1.349, allocations: 261.4 kB / 1.444 GB, free: 2.348 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.788e-05/1.349, allocations: 4 kB / 1.444 GB, free: 2.344 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009135/1.358, allocations: 6.305 MB / 1.45 GB, free: 12.19 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.437e-05/1.358, allocations: 4.031 kB / 1.45 GB, free: 12.19 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002725/1.361, allocations: 0.996 MB / 1.451 GB, free: 11.31 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005678/1.361, allocations: 185 kB / 1.451 GB, free: 11.13 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002008/1.361, allocations: 4 kB / 1.451 GB, free: 11.12 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000674/1.362, allocations: 15.97 kB / 1.451 GB, free: 11.11 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/1.362, allocations: 58.77 kB / 1.451 GB, free: 11.06 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.586e-05/1.362, allocations: 15.12 kB / 1.451 GB, free: 11.05 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0004365/1.363, allocations: 294.6 kB / 1.451 GB, free: 10.83 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/1.363, allocations: 0 / 1.451 GB, free: 10.83 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001048/1.364, allocations: 203.9 kB / 1.452 GB, free: 10.63 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002091/1.366, allocations: 1.967 MB / 1.453 GB, free: 8.793 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002012/1.368, allocations: 1.17 MB / 1.455 GB, free: 7.809 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/1.368, allocations: 4 kB / 1.455 GB, free: 7.805 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001216/1.369, allocations: 0.8357 MB / 1.455 GB, free: 7.051 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/1.37, allocations: 167.9 kB / 1.456 GB, free: 6.926 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003001/1.373, allocations: 1.102 MB / 1.457 GB, free: 5.883 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009724/1.374, allocations: 1.024 MB / 1.458 GB, free: 4.855 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0005632/1.375, allocations: 117.5 kB / 1.458 GB, free: 4.738 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004099/1.375, allocations: 247.8 kB / 1.458 GB, free: 4.684 MB / 0.8698 GB Notification: Performance of SimCode: time 2.054e-06/1.375, allocations: 0 / 1.458 GB, free: 4.684 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04485/1.42, allocations: 14.51 MB / 1.472 GB, free: 6.312 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/1.421, allocations: 143.8 kB / 1.472 GB, free: 6.125 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.359/3.78, allocations: 0 / 1.472 GB, free: 6.125 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat does not exist to compare? outputFormat=mat