Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.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.Conversion.Examples.ACDCConverter,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACDCConverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACDCConverter",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.398/2.398, allocations: 390.5 MB / 398 MB, free: 10.9 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.001023/0.001023, allocations: 180.8 kB / 491.2 MB, free: 1.547 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.501/1.501, 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.000933/0.000933, allocations: 95.69 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.002e-05/2.003e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2615, allocations: 143 MB / 1.212 GB, free: 39.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9677/1.229, allocations: 182.6 MB / 1.391 GB, free: 15.08 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/1.23, allocations: 90.28 kB / 1.391 GB, free: 15.06 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/AC/OnePhase/Conversion/ACDCConverter.mo:42:5-42:39:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.root(terminal_p.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.04932/1.279, allocations: 22.55 MB / 1.413 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.655e-06/1.279, allocations: 3.938 kB / 1.413 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.503e-05/1.279, allocations: 8 kB / 1.413 GB, free: 14.85 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001474/1.281, allocations: 0.5763 MB / 1.413 GB, free: 14.25 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.386e-05/1.281, allocations: 16.02 kB / 1.413 GB, free: 14.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001264/1.282, allocations: 127.5 kB / 1.414 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005248/1.282, allocations: 265.6 kB / 1.414 GB, free: 13.83 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/1.282, allocations: 8 kB / 1.414 GB, free: 13.82 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.322e-05/1.283, allocations: 16 kB / 1.414 GB, free: 13.8 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004673/1.283, allocations: 249.5 kB / 1.414 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005587/1.284, allocations: 362.7 kB / 1.414 GB, free: 13.33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/1.284, allocations: 0 / 1.414 GB, free: 13.33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/1.284, allocations: 0 / 1.414 GB, free: 13.33 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.498e-05/1.284, allocations: 36.31 kB / 1.414 GB, free: 13.3 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002691/1.286, allocations: 1.993 MB / 1.416 GB, free: 11.34 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007028/1.287, allocations: 322.9 kB / 1.417 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00035/1.287, allocations: 176.6 kB / 1.417 GB, free: 10.98 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001423/1.288, allocations: 101.2 kB / 1.417 GB, free: 10.86 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/1.288, allocations: 34.25 kB / 1.417 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=22): time 2.064e-06/1.288, allocations: 0 / 1.417 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=34): time 0.00232/1.29, allocations: 0.8696 MB / 1.418 GB, free: 10.12 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/1.29, allocations: 81.11 kB / 1.418 GB, free: 10.02 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002335/1.29, allocations: 193.9 kB / 1.418 GB, free: 9.855 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.533e-05/1.29, allocations: 29.73 kB / 1.418 GB, free: 9.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/1.291, allocations: 180.3 kB / 1.418 GB, free: 9.664 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/1.291, allocations: 115.6 kB / 1.418 GB, free: 9.562 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.093e-05/1.291, allocations: 0 / 1.418 GB, free: 9.562 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001649/1.291, allocations: 340.6 kB / 1.419 GB, free: 9.23 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002326/1.291, allocations: 151.1 kB / 1.419 GB, free: 9.141 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003169/1.291, allocations: 268.4 kB / 1.419 GB, free: 8.898 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004564/1.292, allocations: 218.5 kB / 1.419 GB, free: 8.75 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/1.292, allocations: 0 / 1.419 GB, free: 8.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001142/1.293, allocations: 0.5876 MB / 1.42 GB, free: 8.281 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005749/1.294, allocations: 1.214 MB / 1.421 GB, free: 6.992 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/1.294, allocations: 4 kB / 1.421 GB, free: 6.988 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004313/1.294, allocations: 137.8 kB / 1.421 GB, free: 6.867 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000422/1.295, allocations: 95.81 kB / 1.421 GB, free: 6.777 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003133/1.298, allocations: 3.833 MB / 1.425 GB, free: 2.867 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003564/1.298, allocations: 36.2 kB / 1.425 GB, free: 2.832 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/1.298, allocations: 19.56 kB / 1.425 GB, free: 2.816 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/1.298, allocations: 4 kB / 1.425 GB, free: 2.812 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001014/1.299, allocations: 0.5204 MB / 1.426 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/1.299, allocations: 4 kB / 1.426 GB, free: 2.406 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002718/1.299, allocations: 123.1 kB / 1.426 GB, free: 2.301 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003975/1.3, allocations: 107.5 kB / 1.426 GB, free: 2.199 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007343/1.301, allocations: 1.108 MB / 1.427 GB, free: 1.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003333/1.301, allocations: 36.14 kB / 1.427 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.653e-05/1.301, allocations: 15 kB / 1.427 GB, free: 1.023 MB / 0.8386 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.conversion.P_n[1]:DUMMY_DER(fixed = false ) "Power transmitted at pin n (primary)" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002109/1.301, allocations: 129.6 kB / 1.427 GB, free: 0.8945 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009301/1.302, allocations: 498.3 kB / 1.428 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.635e-05/1.302, allocations: 27.72 kB / 1.428 GB, free: 492 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/1.303, allocations: 0.5397 MB / 1.428 GB, free: 72 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/1.303, allocations: 4 kB / 1.428 GB, free: 68 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/1.303, allocations: 0 / 1.428 GB, free: 68 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/1.303, allocations: 0 / 1.428 GB, free: 68 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002068/1.305, allocations: 1.201 MB / 1.429 GB, free: 15 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/1.305, allocations: 8.062 kB / 1.429 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002652/1.306, allocations: 67.28 kB / 1.429 GB, free: 14.93 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003647/1.306, allocations: 142.4 kB / 1.43 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/1.306, allocations: 4 kB / 1.43 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002989/1.309, allocations: 3.85 MB / 1.433 GB, free: 10.88 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.309, allocations: 4 kB / 1.433 GB, free: 10.88 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/1.31, allocations: 0.8202 MB / 1.434 GB, free: 10.08 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001694/1.31, allocations: 132.2 kB / 1.434 GB, free: 9.941 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/1.31, allocations: 11.98 kB / 1.434 GB, free: 9.93 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003026/1.311, allocations: 31.72 kB / 1.434 GB, free: 9.902 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.234e-05/1.311, allocations: 39.59 kB / 1.434 GB, free: 9.867 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/1.311, allocations: 8 kB / 1.434 GB, free: 9.859 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001475/1.311, allocations: 157.1 kB / 1.434 GB, free: 9.73 MB / 0.8542 GB Notification: Performance of sort global known variables: time 2.6e-07/1.311, allocations: 0 / 1.434 GB, free: 9.73 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0008308/1.312, allocations: 158.2 kB / 1.435 GB, free: 9.578 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001706/1.314, allocations: 2.015 MB / 1.437 GB, free: 7.598 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001488/1.315, allocations: 1.026 MB / 1.438 GB, free: 6.707 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/1.315, allocations: 4.125 kB / 1.438 GB, free: 6.703 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0005698/1.316, allocations: 433.2 kB / 1.438 GB, free: 6.32 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/1.316, allocations: 48.48 kB / 1.438 GB, free: 6.281 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/1.317, allocations: 0.6306 MB / 1.439 GB, free: 5.676 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004322/1.318, allocations: 0.8144 MB / 1.439 GB, free: 4.844 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0003719/1.318, allocations: 111.2 kB / 1.44 GB, free: 4.73 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/1.318, allocations: 97.78 kB / 1.44 GB, free: 4.695 MB / 0.8542 GB Notification: Performance of SimCode: time 3.81e-07/1.318, allocations: 0 / 1.44 GB, free: 4.695 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03093/1.349, allocations: 7.883 MB / 1.447 GB, free: 12.86 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003193/1.35, allocations: 167.8 kB / 1.448 GB, free: 12.66 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.089/3.439, allocations: 1.547 kB / 1.448 GB, free: 12.66 MB / 0.8698 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACDCConverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACDCConverter.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter_res.mat does not exist to compare? outputFormat=mat