Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",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.001172/0.001172, allocations: 99.86 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.001395/0.001395, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.489/2.489, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004167/0.000417, allocations: 8 kB / 0.8146 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7991/0.7995, allocations: 142.3 MB / 0.9536 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002996/0.8026, allocations: 2.098 MB / 0.9556 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001061/0.8037, allocations: 0.7154 MB / 0.9563 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.866e-05/0.8038, allocations: 3.188 kB / 0.9563 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.8039, allocations: 26.33 kB / 0.9564 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002311/0.8042, allocations: 62.36 kB / 0.9564 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002473/0.8044, allocations: 90.62 kB / 0.9565 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001838/0.8046, allocations: 105.5 kB / 0.9566 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.8049, allocations: 174 kB / 0.9568 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.782e-05/0.805, allocations: 55.17 kB / 0.9568 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.8052, allocations: 62.39 kB / 0.9569 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.148e-05/0.8052, allocations: 7.094 kB / 0.9569 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001348/0.8053, allocations: 49.75 kB / 0.9569 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.684e-05/0.8054, allocations: 45.83 kB / 0.957 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.813e-05/0.8055, allocations: 50.64 kB / 0.957 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002095/0.8057, allocations: 161.1 kB / 0.9572 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.8057, allocations: 0 / 0.9572 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.894e-06/0.8057, allocations: 0 / 0.9572 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.8057, allocations: 1.375 kB / 0.9572 GB, free: 5.297 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.000544/0.8062, allocations: 426.2 kB / 0.9576 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.8063, allocations: 9.656 kB / 0.9576 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.507e-05/0.8063, allocations: 50.12 kB / 0.9577 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003842/0.8067, allocations: 52.77 kB / 0.9577 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/0.807, allocations: 208.3 kB / 0.9579 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.807, allocations: 14.38 kB / 0.9579 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.814e-05/0.807, allocations: 12.78 kB / 0.9579 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003528/0.8074, allocations: 227.3 kB / 0.9581 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.8074, allocations: 0 / 0.9581 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.144e-05/0.8074, allocations: 9.391 kB / 0.9582 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.413e-05/0.8074, allocations: 19.83 kB / 0.9582 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002164/0.8077, allocations: 145.6 kB / 0.9583 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009776/0.8087, allocations: 1.124 MB / 0.9594 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.673e-05/0.8087, allocations: 44.16 kB / 0.9595 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.8088, allocations: 1.281 kB / 0.9595 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.494e-05/0.8088, allocations: 30.56 kB / 0.9595 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.202e-06/0.8088, allocations: 0 / 0.9595 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0002/0.809, allocations: 83.55 kB / 0.9596 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.007e-05/0.809, allocations: 56.22 kB / 0.9596 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.8092, allocations: 176.4 kB / 0.9598 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.8092, allocations: 27.17 kB / 0.9598 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.054e-05/0.8093, allocations: 140.3 kB / 0.9599 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.36e-05/0.8093, allocations: 14.42 kB / 0.96 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.191e-06/0.8093, allocations: 4 kB / 0.96 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.894e-05/0.8094, allocations: 326.6 kB / 0.9603 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.896e-05/0.8094, allocations: 17.61 kB / 0.9603 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.821e-05/0.8095, allocations: 94.28 kB / 0.9604 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.475e-05/0.8096, allocations: 37.8 kB / 0.9604 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.8096, allocations: 1.156 kB / 0.9604 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001939/0.8098, allocations: 136.1 kB / 0.9606 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.00024/0.81, allocations: 0.9583 MB / 0.9615 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.81, allocations: 10.2 kB / 0.9615 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.8101, allocations: 4.281 kB / 0.9615 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.8102, allocations: 27.8 kB / 0.9615 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.8102, allocations: 3.5 kB / 0.9615 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.187e-05/0.8103, allocations: 17.69 kB / 0.9615 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.8103, allocations: 9.156 kB / 0.9616 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.047e-06/0.8103, allocations: 8.875 kB / 0.9616 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001369/0.8105, allocations: 100.5 kB / 0.9617 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.8105, allocations: 2.375 kB / 0.9617 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.79e-06/0.8105, allocations: 3.781 kB / 0.9617 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.057e-05/0.8106, allocations: 27.64 kB / 0.9617 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.8106, allocations: 7.016 kB / 0.9617 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.639e-05/0.8106, allocations: 9 kB / 0.9617 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.8107, allocations: 10.28 kB / 0.9617 GB, free: 0.9531 MB / 0.7169 GB 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 (14): * Single equations (assignments): 14 * 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 9.836e-05/0.8108, allocations: 209.1 kB / 0.9619 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.882e-05/0.8108, allocations: 20.38 kB / 0.9619 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.947e-05/0.8108, allocations: 15.73 kB / 0.962 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.8108, allocations: 1 kB / 0.962 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.8108, allocations: 4.984 kB / 0.962 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.8109, allocations: 0 / 0.962 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003251/0.8112, allocations: 469.7 kB / 0.9624 GB, free: 252 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.8112, allocations: 5.531 kB / 0.9624 GB, free: 248 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.334e-05/0.8112, allocations: 9.953 kB / 0.9624 GB, free: 244 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.8112, allocations: 1.031 kB / 0.9624 GB, free: 244 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.8113, allocations: 1.969 kB / 0.9624 GB, free: 244 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.8113, allocations: 5.062 kB / 0.9624 GB, free: 240 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.8113, allocations: 1.094 kB / 0.9624 GB, free: 240 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001124/0.8114, allocations: 148.6 kB / 0.9626 GB, free: 68 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.616e-05/0.8115, allocations: 98.41 kB / 0.9627 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/0.8115, allocations: 5.312 kB / 0.9627 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.66e-05/0.8115, allocations: 1.375 kB / 0.9627 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.24e-05/0.8116, allocations: 9.312 kB / 0.9627 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-06/0.8116, allocations: 6.703 kB / 0.9627 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.367e-05/0.8117, allocations: 129.6 kB / 0.9628 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8117, allocations: 0 / 0.9628 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003543/0.812, allocations: 53.09 kB / 0.9629 GB, free: 15.83 MB / 0.7325 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 (4): * Single equations (assignments): 4 * 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.0004683/0.8125, allocations: 0.8808 MB / 0.9637 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002064/0.8127, allocations: 107.7 kB / 0.9638 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.8127, allocations: 4 kB / 0.9638 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.77e-05/0.8128, allocations: 18.08 kB / 0.9638 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002153/0.813, allocations: 19.23 kB / 0.9639 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/0.8147, allocations: 2.319 MB / 0.9661 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.815, allocations: 0.7272 MB / 0.9668 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001039/0.8151, allocations: 26.88 kB / 0.9669 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.068e-05/0.8152, allocations: 37.33 kB / 0.9669 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of SimCode: time 4.91e-07/0.8152, allocations: 0 / 0.9669 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01287/0.8281, allocations: 2.124 MB / 0.969 GB, free: 10.94 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/0.8283, allocations: 188.3 kB / 0.9692 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/2.486, allocations: 0 / 0.9692 GB, free: 10.7 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat