Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_10_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.007069/0.007069, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001725/0.001725, allocations: 194.9 kB / 16.67 MB, free: 6.352 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.605/2.605, allocations: 437 MB / 0.7105 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 71.89 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2999, allocations: 151.6 MB / 1.166 GB, free: 7.32 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005257/0.3052, allocations: 3.081 MB / 1.169 GB, free: 4.219 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003017/0.3083, allocations: 1.718 MB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002002/0.3085, allocations: 4 kB / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.3097, allocations: 338.7 kB / 1.171 GB, free: 2.156 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0005878/0.3103, allocations: 211.1 kB / 1.171 GB, free: 1.949 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005129/0.3108, allocations: 191.4 kB / 1.172 GB, free: 1.766 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.3112, allocations: 319 kB / 1.172 GB, free: 1.453 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004044/0.3116, allocations: 244.9 kB / 1.172 GB, free: 1.211 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.3118, allocations: 139.6 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003141/0.3121, allocations: 155.5 kB / 1.172 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.135e-05/0.3122, allocations: 20 kB / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004023/0.3126, allocations: 243.5 kB / 1.173 GB, free: 0.6641 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.3127, allocations: 95.78 kB / 1.173 GB, free: 0.5703 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.3129, allocations: 127.4 kB / 1.173 GB, free: 456 kB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005155/0.3134, allocations: 422.5 kB / 1.173 GB, free: 32 kB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3134, allocations: 4 kB / 1.173 GB, free: 28 kB / 0.92 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3134, allocations: 4 kB / 1.173 GB, free: 24 kB / 0.92 GB Notification: Performance of Transformations before backend: time 1.249e-05/0.3134, allocations: 0 / 1.173 GB, free: 24 kB / 0.92 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.0009768/0.3144, allocations: 0.5493 MB / 1.174 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.3145, allocations: 12.03 kB / 1.174 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.301e-05/0.3145, allocations: 58.73 kB / 1.174 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000743/0.3153, allocations: 100.6 kB / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003518/0.3156, allocations: 260 kB / 1.174 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.3157, allocations: 20.8 kB / 1.174 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.3158, allocations: 20.56 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005271/0.3163, allocations: 376.9 kB / 1.175 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.3163, allocations: 4 kB / 1.175 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.3164, allocations: 4 kB / 1.175 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001031/0.3165, allocations: 32.41 kB / 1.175 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004518/0.3169, allocations: 309.5 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.3188, allocations: 1.541 MB / 1.176 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004191/0.3192, allocations: 226.4 kB / 1.177 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.3194, allocations: 116.8 kB / 1.177 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000139/0.3195, allocations: 93.09 kB / 1.177 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.3196, allocations: 34.56 kB / 1.177 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=18): time 1.392e-06/0.3196, allocations: 0 / 1.177 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19): time 0.001234/0.3208, allocations: 0.7875 MB / 1.178 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/0.3209, allocations: 63.34 kB / 1.178 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.321, allocations: 186.7 kB / 1.178 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.3211, allocations: 29.7 kB / 1.178 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.819e-05/0.3212, allocations: 168.1 kB / 1.178 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.939e-05/0.3212, allocations: 75.36 kB / 1.178 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.457e-05/0.3213, allocations: 53.69 kB / 1.178 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3214, allocations: 334.8 kB / 1.179 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.3216, allocations: 111.9 kB / 1.179 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.3218, allocations: 175 kB / 1.179 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000378/0.3222, allocations: 291.8 kB / 1.179 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3222, allocations: 4 kB / 1.179 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007342/0.323, allocations: 419.4 kB / 1.179 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.323, allocations: 8 kB / 1.179 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.323, allocations: 0 / 1.179 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004306/0.3234, allocations: 101 kB / 1.18 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.3237, allocations: 55.89 kB / 1.18 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001899/0.3256, allocations: 1.872 MB / 1.181 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.3259, allocations: 27.94 kB / 1.181 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.3259, allocations: 12.06 kB / 1.182 GB, free: 6.973 MB / 0.9356 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 (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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001651/0.3261, allocations: 161.7 kB / 1.182 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.059e-05/0.3261, allocations: 15.91 kB / 1.182 GB, free: 6.789 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004712/0.3266, allocations: 295.4 kB / 1.182 GB, free: 6.496 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.3266, allocations: 4 kB / 1.182 GB, free: 6.492 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-06/0.3266, allocations: 4 kB / 1.182 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.3266, allocations: 3.938 kB / 1.182 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009093/0.3276, allocations: 0.6969 MB / 1.183 GB, free: 5.727 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3276, allocations: 0 / 1.183 GB, free: 5.727 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003016/0.3279, allocations: 63.89 kB / 1.183 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.3279, allocations: 3.938 kB / 1.183 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/0.3279, allocations: 8 kB / 1.183 GB, free: 5.652 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.3279, allocations: 4.047 kB / 1.183 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3279, allocations: 8 kB / 1.183 GB, free: 5.641 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005645/0.3285, allocations: 0.5108 MB / 1.183 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.3286, allocations: 116.9 kB / 1.183 GB, free: 4.977 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.3287, allocations: 8 kB / 1.183 GB, free: 4.969 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.3289, allocations: 11.98 kB / 1.183 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.91e-05/0.3289, allocations: 16.05 kB / 1.183 GB, free: 4.941 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.3289, allocations: 4 kB / 1.183 GB, free: 4.938 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001241/0.3291, allocations: 152 kB / 1.184 GB, free: 4.785 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3291, allocations: 0 / 1.184 GB, free: 4.785 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00037/0.3294, allocations: 64 kB / 1.184 GB, free: 4.723 MB / 0.9356 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 (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.0008801/0.3303, allocations: 1.068 MB / 1.185 GB, free: 3.621 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007295/0.3311, allocations: 430.7 kB / 1.185 GB, free: 3.188 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/0.3311, allocations: 8 kB / 1.185 GB, free: 3.18 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001704/0.3313, allocations: 115.9 kB / 1.185 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003913/0.3317, allocations: 41.98 kB / 1.185 GB, free: 3.027 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/0.3353, allocations: 2.906 MB / 1.188 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.3356, allocations: 0.7714 MB / 1.189 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001656/0.3358, allocations: 53.91 kB / 1.189 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.3359, allocations: 67.41 kB / 1.189 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of SimCode: time 5.41e-07/0.3359, allocations: 0 / 1.189 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02512/0.3611, allocations: 5.098 MB / 1.194 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.382/9.743, allocations: 7.734 kB / 1.194 GB, free: 10.15 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches