Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 101.5 kB / 16.27 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 190.8 kB / 17.19 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7585/0.7585, allocations: 122.9 MB / 413.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 63.89 kB / 0.4912 GB, free: 7.355 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3153, allocations: 77.91 MB / 0.5673 GB, free: 32.7 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004274/0.3196, allocations: 3.257 MB / 0.5705 GB, free: 30.49 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002865/0.3225, allocations: 2.014 MB / 0.5724 GB, free: 29.14 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001904/0.3227, allocations: 3.75 kB / 0.5724 GB, free: 29.14 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009195/0.3237, allocations: 292.5 kB / 0.5727 GB, free: 28.97 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006251/0.3243, allocations: 234.6 kB / 0.5729 GB, free: 28.85 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007497/0.3251, allocations: 292.5 kB / 0.5732 GB, free: 28.71 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004652/0.3255, allocations: 406.4 kB / 0.5736 GB, free: 28.55 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003589/0.3259, allocations: 205.7 kB / 0.5738 GB, free: 28.47 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002794/0.3262, allocations: 163.1 kB / 0.574 GB, free: 28.41 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004295/0.3266, allocations: 198.8 kB / 0.5741 GB, free: 28.33 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.211e-05/0.3267, allocations: 24.41 kB / 0.5742 GB, free: 28.33 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005105/0.3272, allocations: 267.2 kB / 0.5744 GB, free: 28.24 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001441/0.3274, allocations: 111.7 kB / 0.5745 GB, free: 28.2 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.3276, allocations: 149 kB / 0.5747 GB, free: 28.12 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007003/0.3283, allocations: 492.7 kB / 0.5751 GB, free: 27.95 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3283, allocations: 1.375 kB / 0.5751 GB, free: 27.95 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3283, allocations: 0 / 0.5751 GB, free: 27.95 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.3283, allocations: 1.062 kB / 0.5751 GB, free: 27.95 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001083/0.3294, allocations: 0.6 MB / 0.5757 GB, free: 27.45 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.3294, allocations: 10.25 kB / 0.5757 GB, free: 27.45 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.62e-05/0.3295, allocations: 60.09 kB / 0.5758 GB, free: 27.4 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/0.3306, allocations: 117.8 kB / 0.5759 GB, free: 27.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.3309, allocations: 278.2 kB / 0.5762 GB, free: 27.13 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.3309, allocations: 18.81 kB / 0.5762 GB, free: 27.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.3311, allocations: 39.56 kB / 0.5762 GB, free: 27.11 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007066/0.3318, allocations: 454.2 kB / 0.5767 GB, free: 26.88 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.3318, allocations: 9.156 kB / 0.5767 GB, free: 26.87 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.3318, allocations: 14.3 kB / 0.5767 GB, free: 26.86 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001491/0.332, allocations: 40.86 kB / 0.5767 GB, free: 26.85 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006368/0.3326, allocations: 364.5 kB / 0.5771 GB, free: 26.74 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.3349, allocations: 2.22 MB / 0.5792 GB, free: 24.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003863/0.3353, allocations: 264.6 kB / 0.5795 GB, free: 24.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.3355, allocations: 160 kB / 0.5796 GB, free: 24.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.3355, allocations: 1.969 kB / 0.5797 GB, free: 24.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.46e-05/0.3355, allocations: 38.75 kB / 0.5797 GB, free: 24.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=22): time 1.853e-06/0.3355, allocations: 5.469 kB / 0.5797 GB, free: 24.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=23): time 0.001628/0.3372, allocations: 1.062 MB / 0.5807 GB, free: 24.04 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.175e-05/0.3372, allocations: 54.16 kB / 0.5808 GB, free: 23.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/0.3375, allocations: 254.5 kB / 0.581 GB, free: 23.83 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.3375, allocations: 31.05 kB / 0.5811 GB, free: 23.79 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.645e-05/0.3376, allocations: 191.9 kB / 0.5812 GB, free: 23.63 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.062e-05/0.3377, allocations: 83.36 kB / 0.5813 GB, free: 23.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.3378, allocations: 77.09 kB / 0.5814 GB, free: 23.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.388e-05/0.3379, allocations: 335.3 kB / 0.5817 GB, free: 23.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002801/0.3381, allocations: 155.9 kB / 0.5819 GB, free: 23.15 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002961/0.3384, allocations: 246 kB / 0.5821 GB, free: 22.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004755/0.3389, allocations: 415.8 kB / 0.5825 GB, free: 22.72 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3389, allocations: 3.938 kB / 0.5825 GB, free: 22.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001057/0.34, allocations: 0.5959 MB / 0.5831 GB, free: 22.39 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.34, allocations: 7.438 kB / 0.5831 GB, free: 22.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.34, allocations: 3.5 kB / 0.5831 GB, free: 22.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006168/0.3407, allocations: 184 kB / 0.5833 GB, free: 22.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003039/0.341, allocations: 66.8 kB / 0.5833 GB, free: 22.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002256/0.3432, allocations: 2.508 MB / 0.5858 GB, free: 20.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003899/0.3436, allocations: 20.73 kB / 0.5858 GB, free: 20.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.3437, allocations: 18.8 kB / 0.5858 GB, free: 20.23 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001581/0.3438, allocations: 165.9 kB / 0.586 GB, free: 20.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.868e-05/0.3439, allocations: 31.7 kB / 0.586 GB, free: 20.06 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004604/0.3444, allocations: 350.2 kB / 0.5863 GB, free: 19.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3444, allocations: 3.281 kB / 0.5863 GB, free: 19.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.3444, allocations: 4.984 kB / 0.5863 GB, free: 19.85 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3444, allocations: 1.188 kB / 0.5863 GB, free: 19.85 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008477/0.3453, allocations: 0.8169 MB / 0.5871 GB, free: 19.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3453, allocations: 0 / 0.5871 GB, free: 19.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003789/0.3457, allocations: 81.53 kB / 0.5872 GB, free: 19.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3457, allocations: 2.531 kB / 0.5872 GB, free: 19.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/0.3457, allocations: 3.188 kB / 0.5872 GB, free: 19.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.3457, allocations: 2.344 kB / 0.5872 GB, free: 19.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3457, allocations: 2.562 kB / 0.5872 GB, free: 19.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006154/0.3463, allocations: 0.6138 MB / 0.5878 GB, free: 18.81 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.3464, allocations: 131.1 kB / 0.588 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.642e-05/0.3465, allocations: 7.406 kB / 0.588 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.3467, allocations: 15.45 kB / 0.588 GB, free: 18.67 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.912e-05/0.3468, allocations: 19.19 kB / 0.588 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.3468, allocations: 9.062 kB / 0.588 GB, free: 18.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001857/0.347, allocations: 191.7 kB / 0.5882 GB, free: 18.53 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.347, allocations: 0 / 0.5882 GB, free: 18.53 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004157/0.3474, allocations: 86.41 kB / 0.5883 GB, free: 18.52 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000802/0.3482, allocations: 1.158 MB / 0.5894 GB, free: 17.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008689/0.3491, allocations: 0.5734 MB / 0.59 GB, free: 17.26 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3491, allocations: 1.375 kB / 0.59 GB, free: 17.26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.3493, allocations: 158 kB / 0.5901 GB, free: 17.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.3498, allocations: 56.3 kB / 0.5902 GB, free: 17.15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005039/0.3548, allocations: 3.699 MB / 0.5938 GB, free: 14.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.3551, allocations: 0.791 MB / 0.5945 GB, free: 13.68 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002516/0.3553, allocations: 78.75 kB / 0.5946 GB, free: 13.65 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.3555, allocations: 83 kB / 0.5947 GB, free: 13.58 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3555, allocations: 0 / 0.5947 GB, free: 13.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.3795, allocations: 6.818 MB / 0.6014 GB, free: 7.168 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.763/9.143, allocations: 6.844 kB / 0.6014 GB, free: 7.168 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)