Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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 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.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_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.001438/0.001437, allocations: 99.94 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.001767/0.001767, 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 2.648/2.648, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.607/4.607, allocations: 409.2 MB / 0.6838 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007298/0.00073, allocations: 8 kB / 0.8375 GB, free: 6.566 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.251/1.251, allocations: 146.8 MB / 0.9809 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005577/1.257, allocations: 2.613 MB / 0.9834 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003815/1.261, allocations: 1.59 MB / 0.985 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001869/1.261, allocations: 4 kB / 0.985 GB, free: 2.102 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002382/1.261, allocations: 39.75 kB / 0.985 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000692/1.262, allocations: 143.5 kB / 0.9852 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006594/1.263, allocations: 139.6 kB / 0.9853 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004004/1.263, allocations: 175.6 kB / 0.9855 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/1.265, allocations: 495.2 kB / 0.9859 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002504/1.265, allocations: 99.66 kB / 0.986 GB, free: 0.9961 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003632/1.265, allocations: 95.66 kB / 0.9861 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.128e-05/1.265, allocations: 16 kB / 0.9861 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004861/1.266, allocations: 143.7 kB / 0.9863 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001455/1.266, allocations: 75.8 kB / 0.9863 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.245e-05/1.266, allocations: 65.58 kB / 0.9864 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006645/1.267, allocations: 317.5 kB / 0.9867 GB, free: 300 kB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/1.267, allocations: 0 / 0.9867 GB, free: 300 kB / 0.7325 GB Notification: Performance of FrontEnd: time 2.595e-06/1.267, allocations: 0 / 0.9867 GB, free: 300 kB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.661e-05/1.267, allocations: 4 kB / 0.9867 GB, free: 296 kB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001314/1.268, allocations: 0.5068 MB / 0.9872 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 6.132e-05/1.268, allocations: 8.031 kB / 0.9872 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/1.268, allocations: 54.55 kB / 0.9873 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/1.27, allocations: 99.61 kB / 0.9874 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005452/1.27, allocations: 258.6 kB / 0.9876 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/1.27, allocations: 12.44 kB / 0.9876 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001604/1.27, allocations: 39.88 kB / 0.9877 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009191/1.271, allocations: 365.1 kB / 0.988 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/1.271, allocations: 3.938 kB / 0.988 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.192e-05/1.271, allocations: 11.98 kB / 0.988 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001496/1.272, allocations: 32.41 kB / 0.988 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007989/1.272, allocations: 305.5 kB / 0.9883 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003068/1.276, allocations: 1.533 MB / 0.9898 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006852/1.276, allocations: 226.4 kB / 0.9901 GB, free: 12.58 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002131/1.276, allocations: 93.09 kB / 0.9901 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.387e-05/1.277, allocations: 34.56 kB / 0.9902 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=18): time 3.667e-06/1.277, allocations: 0 / 0.9902 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of matching and sorting (n=19): time 0.002109/1.279, allocations: 0.7899 MB / 0.9909 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/1.279, allocations: 59.41 kB / 0.991 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003405/1.279, allocations: 187.9 kB / 0.9912 GB, free: 11.33 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.704e-05/1.279, allocations: 33.7 kB / 0.9912 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/1.279, allocations: 163.9 kB / 0.9914 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 8.817e-05/1.279, allocations: 67.02 kB / 0.9914 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.436e-05/1.279, allocations: 4 kB / 0.9914 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002405/1.28, allocations: 322.8 kB / 0.9917 GB, free: 10.73 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002865/1.28, allocations: 115.9 kB / 0.9919 GB, free: 10.61 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003534/1.28, allocations: 174.1 kB / 0.992 GB, free: 10.42 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/1.281, allocations: 137 kB / 0.9922 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/1.281, allocations: 0 / 0.9922 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001249/1.282, allocations: 419.7 kB / 0.9926 GB, free: 9.871 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/1.282, allocations: 4 kB / 0.9926 GB, free: 9.867 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/1.282, allocations: 4 kB / 0.9926 GB, free: 9.863 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006442/1.283, allocations: 100.8 kB / 0.9927 GB, free: 9.762 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003985/1.283, allocations: 48 kB / 0.9927 GB, free: 9.715 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003043/1.286, allocations: 1.769 MB / 0.9944 GB, free: 7.812 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000402/1.287, allocations: 23.88 kB / 0.9945 GB, free: 7.789 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-05/1.287, allocations: 15.98 kB / 0.9945 GB, free: 7.773 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (26): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002989/1.287, allocations: 153.7 kB / 0.9946 GB, free: 7.613 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.228e-05/1.287, allocations: 19.81 kB / 0.9946 GB, free: 7.594 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007915/1.288, allocations: 297.3 kB / 0.9949 GB, free: 7.305 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/1.288, allocations: 4 kB / 0.9949 GB, free: 7.301 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/1.288, allocations: 4 kB / 0.9949 GB, free: 7.297 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/1.288, allocations: 7.922 kB / 0.9949 GB, free: 7.289 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/1.29, allocations: 0.7047 MB / 0.9956 GB, free: 6.523 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/1.29, allocations: 4 kB / 0.9956 GB, free: 6.52 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004578/1.29, allocations: 59.95 kB / 0.9957 GB, free: 6.461 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-06/1.29, allocations: 4 kB / 0.9957 GB, free: 6.457 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/1.29, allocations: 4 kB / 0.9957 GB, free: 6.453 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/1.29, allocations: 4 kB / 0.9957 GB, free: 6.449 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/1.29, allocations: 0 / 0.9957 GB, free: 6.449 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/1.291, allocations: 0.5328 MB / 0.9962 GB, free: 5.883 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/1.291, allocations: 116.9 kB / 0.9963 GB, free: 5.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.892e-05/1.292, allocations: 11.98 kB / 0.9963 GB, free: 5.738 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002868/1.292, allocations: 11.94 kB / 0.9963 GB, free: 5.727 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.764e-05/1.292, allocations: 19.92 kB / 0.9964 GB, free: 5.707 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/1.292, allocations: 4 kB / 0.9964 GB, free: 5.703 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002333/1.292, allocations: 144.1 kB / 0.9965 GB, free: 5.559 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.3e-07/1.292, allocations: 0 / 0.9965 GB, free: 5.559 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005411/1.293, allocations: 72.06 kB / 0.9966 GB, free: 5.488 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[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 (20): * Single equations (assignments): 20 * 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.001209/1.294, allocations: 1.216 MB / 0.9978 GB, free: 4.234 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0009178/1.295, allocations: 418.3 kB / 0.9982 GB, free: 3.812 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/1.295, allocations: 0 / 0.9982 GB, free: 3.812 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001944/1.295, allocations: 117.1 kB / 0.9983 GB, free: 3.699 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003889/1.295, allocations: 37.47 kB / 0.9983 GB, free: 3.664 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003649/1.299, allocations: 2.595 MB / 1.001 GB, free: 0.9844 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004585/1.3, allocations: 0.7755 MB / 1.002 GB, free: 188 kB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002161/1.3, allocations: 61.91 kB / 1.002 GB, free: 124 kB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/1.3, allocations: 63.41 kB / 1.002 GB, free: 64 kB / 0.7481 GB Notification: Performance of SimCode: time 1.332e-06/1.3, allocations: 4 kB / 1.002 GB, free: 60 kB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02278/1.323, allocations: 4.641 MB / 1.006 GB, free: 11.64 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003618/1.323, allocations: 226.7 kB / 1.006 GB, free: 11.4 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.956/4.279, allocations: 0 / 1.006 GB, free: 11.4 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat