Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.001415/0.001415, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001855/0.001855, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.65/2.65, allocations: 223.2 MB / 239.9 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.508/4.508, allocations: 409.2 MB / 0.6838 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006097/0.0006098, allocations: 8 kB / 0.8375 GB, free: 6.598 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.024/1.025, allocations: 146.8 MB / 0.9809 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.006543/1.032, allocations: 3.172 MB / 0.984 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004056/1.036, allocations: 1.662 MB / 0.9856 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004042/1.036, allocations: 15.88 kB / 0.9856 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002599/1.037, allocations: 51.62 kB / 0.9857 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001059/1.038, allocations: 239.3 kB / 0.9859 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007919/1.038, allocations: 183.6 kB / 0.9861 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0009511/1.039, allocations: 396.8 kB / 0.9864 GB, free: 0.6211 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/1.041, allocations: 325.8 kB / 0.9867 GB, free: 288 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005619/1.041, allocations: 199.3 kB / 0.9869 GB, free: 88 kB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005858/1.042, allocations: 183.2 kB / 0.9871 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 6.172e-05/1.042, allocations: 16 kB / 0.9871 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004623/1.042, allocations: 103.8 kB / 0.9872 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001993/1.042, allocations: 91.67 kB / 0.9873 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001632/1.043, allocations: 97.52 kB / 0.9874 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0008272/1.043, allocations: 409.1 kB / 0.9878 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/1.043, allocations: 0 / 0.9878 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of FrontEnd: time 4.689e-06/1.044, allocations: 4 kB / 0.9878 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 9.878e-06/1.044, allocations: 0 / 0.9878 GB, free: 15.2 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.002072/1.046, allocations: 0.6584 MB / 0.9884 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 9.467e-05/1.046, allocations: 12.03 kB / 0.9885 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001622/1.046, allocations: 74.53 kB / 0.9885 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001332/1.047, allocations: 119.2 kB / 0.9886 GB, free: 14.27 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009734/1.048, allocations: 362.6 kB / 0.989 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.638e-05/1.048, allocations: 24.64 kB / 0.989 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/1.048, allocations: 43.88 kB / 0.9891 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/1.05, allocations: 0.5437 MB / 0.9896 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/1.05, allocations: 7.938 kB / 0.9896 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.463e-05/1.05, allocations: 12 kB / 0.9896 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001165/1.05, allocations: 40.53 kB / 0.9896 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/1.051, allocations: 421.7 kB / 0.99 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004872/1.056, allocations: 3.341 MB / 0.9933 GB, free: 9.137 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/1.057, allocations: 338.6 kB / 0.9936 GB, free: 8.797 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.668e-05/1.057, allocations: 4 kB / 0.9936 GB, free: 8.793 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/1.057, allocations: 30.56 kB / 0.9937 GB, free: 8.754 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=26): time 4.509e-06/1.057, allocations: 4 kB / 0.9937 GB, free: 8.75 MB / 0.7481 GB Notification: Performance of matching and sorting (n=27): time 0.003836/1.061, allocations: 1.082 MB / 0.9947 GB, free: 7.598 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.077e-05/1.061, allocations: 55.64 kB / 0.9948 GB, free: 7.531 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006337/1.062, allocations: 329.6 kB / 0.9951 GB, free: 7.203 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/1.062, allocations: 37.7 kB / 0.9951 GB, free: 7.16 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002744/1.062, allocations: 247.4 kB / 0.9954 GB, free: 6.914 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/1.062, allocations: 94.73 kB / 0.9955 GB, free: 6.82 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.214e-05/1.063, allocations: 8 kB / 0.9955 GB, free: 6.812 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002455/1.063, allocations: 346.8 kB / 0.9958 GB, free: 6.465 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004667/1.063, allocations: 152.7 kB / 0.9959 GB, free: 6.312 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006698/1.064, allocations: 299.1 kB / 0.9962 GB, free: 5.957 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005563/1.065, allocations: 196.5 kB / 0.9964 GB, free: 5.766 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-05/1.065, allocations: 8 kB / 0.9964 GB, free: 5.758 MB / 0.7481 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001654/1.066, allocations: 0.5655 MB / 0.997 GB, free: 5.176 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/1.066, allocations: 8 kB / 0.997 GB, free: 5.168 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/1.066, allocations: 4 kB / 0.997 GB, free: 5.164 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000478/1.067, allocations: 87.08 kB / 0.9971 GB, free: 5.07 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005991/1.067, allocations: 99.77 kB / 0.9972 GB, free: 4.973 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/1.067, allocations: 4 kB / 0.9972 GB, free: 4.969 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004749/1.068, allocations: 31.97 kB / 0.9972 GB, free: 4.938 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.451e-05/1.068, allocations: 16 kB / 0.9972 GB, free: 4.922 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003506/1.068, allocations: 185.6 kB / 0.9974 GB, free: 4.73 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/1.068, allocations: 39.53 kB / 0.9974 GB, free: 4.691 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001452/1.07, allocations: 476.5 kB / 0.9979 GB, free: 4.211 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/1.07, allocations: 4 kB / 0.9979 GB, free: 4.207 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/1.07, allocations: 0 / 0.9979 GB, free: 4.207 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/1.07, allocations: 3.984 kB / 0.9979 GB, free: 4.203 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002609/1.073, allocations: 0.9637 MB / 0.9988 GB, free: 3.168 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/1.073, allocations: 0 / 0.9988 GB, free: 3.168 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003952/1.073, allocations: 55.89 kB / 0.9989 GB, free: 3.113 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004109/1.073, allocations: 94.53 kB / 0.999 GB, free: 3.012 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.54e-05/1.074, allocations: 8 kB / 0.999 GB, free: 3.004 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.285e-06/1.074, allocations: 0 / 0.999 GB, free: 3.004 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/1.074, allocations: 7.938 kB / 0.999 GB, free: 2.996 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001448/1.075, allocations: 0.583 MB / 0.9996 GB, free: 2.359 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003231/1.075, allocations: 136.6 kB / 0.9997 GB, free: 2.207 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.154e-05/1.075, allocations: 11.95 kB / 0.9997 GB, free: 2.195 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003852/1.076, allocations: 27.97 kB / 0.9997 GB, free: 2.168 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/1.076, allocations: 23.97 kB / 0.9997 GB, free: 2.145 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/1.076, allocations: 8 kB / 0.9998 GB, free: 2.137 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000539/1.077, allocations: 231.2 kB / 1 GB, free: 1.914 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.1e-07/1.077, allocations: 0 / 1 GB, free: 1.914 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008249/1.077, allocations: 91.98 kB / 1 GB, free: 1.824 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002057/1.079, allocations: 1.342 MB / 1.001 GB, free: 436 kB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001682/1.081, allocations: 0.6476 MB / 1.002 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/1.081, allocations: 4.125 kB / 1.002 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0007689/1.082, allocations: 433.7 kB / 1.002 GB, free: 15.22 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/1.083, allocations: 118.7 kB / 1.003 GB, free: 15.11 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007334/1.09, allocations: 5.352 MB / 1.008 GB, free: 9.602 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006698/1.091, allocations: 0.8356 MB / 1.009 GB, free: 8.742 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003718/1.092, allocations: 75.36 kB / 1.009 GB, free: 8.668 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002148/1.092, allocations: 131.4 kB / 1.009 GB, free: 8.539 MB / 0.7637 GB Notification: Performance of SimCode: time 1.613e-06/1.092, allocations: 0 / 1.009 GB, free: 8.539 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0332/1.125, allocations: 7.809 MB / 1.016 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002971/1.125, allocations: 224.2 kB / 1.017 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.179/4.304, allocations: 0 / 1.017 GB, free: 0.7656 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat does not exist to compare? outputFormat=mat