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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002219/0.002219, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.378/1.378, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.728/2.728, allocations: 472.6 MB / 0.7451 GB, free: 4.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 65.77 kB / 0.912 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3777, allocations: 159.9 MB / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005792/0.3836, allocations: 3.08 MB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004835/0.3885, allocations: 1.722 MB / 1.073 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002902/0.3888, allocations: 7.938 kB / 1.073 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001667/0.3905, allocations: 338.2 kB / 1.073 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.3915, allocations: 215.1 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008701/0.3924, allocations: 179.6 kB / 1.074 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007677/0.3932, allocations: 311 kB / 1.074 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007774/0.394, allocations: 245 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004411/0.3945, allocations: 147.4 kB / 1.074 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005863/0.3951, allocations: 155.5 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.712e-05/0.3952, allocations: 20 kB / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007367/0.3959, allocations: 239.6 kB / 1.075 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002197/0.3962, allocations: 111.6 kB / 1.075 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000261/0.3964, allocations: 123.4 kB / 1.075 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001012/0.3975, allocations: 414.8 kB / 1.075 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.3975, allocations: 3.984 kB / 1.075 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.124e-06/0.3975, allocations: 0 / 1.075 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.613e-05/0.3975, allocations: 0 / 1.075 GB, free: 3.188 MB / 0.8262 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.001722/0.3993, allocations: 0.5342 MB / 1.076 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.3993, allocations: 11.97 kB / 1.076 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001428/0.4008, allocations: 104.5 kB / 1.076 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005493/0.4013, allocations: 248 kB / 1.076 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.4014, allocations: 16.81 kB / 1.076 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001657/0.4016, allocations: 28.45 kB / 1.076 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009791/0.4026, allocations: 377.1 kB / 1.077 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.4026, allocations: 4 kB / 1.077 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.37e-05/0.4027, allocations: 8 kB / 1.077 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001679/0.4028, allocations: 28.42 kB / 1.077 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008618/0.4037, allocations: 305.5 kB / 1.077 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003027/0.4068, allocations: 1.541 MB / 1.078 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007343/0.4075, allocations: 230.4 kB / 1.079 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002842/0.4078, allocations: 112.8 kB / 1.079 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002299/0.4081, allocations: 89.09 kB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.529e-05/0.4081, allocations: 34.5 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 2.515e-06/0.4081, allocations: 0 / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.002304/0.4105, allocations: 0.8016 MB / 1.08 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.4105, allocations: 51.41 kB / 1.08 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003669/0.4109, allocations: 195.1 kB / 1.08 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.411, allocations: 29.7 kB / 1.08 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/0.4111, allocations: 163.9 kB / 1.08 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.45e-05/0.4112, allocations: 63.02 kB / 1.08 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.4114, allocations: 61.59 kB / 1.08 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001765/0.4116, allocations: 334.8 kB / 1.08 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/0.412, allocations: 119.9 kB / 1.081 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000358/0.4123, allocations: 161.9 kB / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007058/0.413, allocations: 300.1 kB / 1.081 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4131, allocations: 0 / 1.081 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001409/0.4145, allocations: 422.8 kB / 1.081 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.4145, allocations: 5.25 kB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.4145, allocations: 0 / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006719/0.4152, allocations: 104.7 kB / 1.082 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004329/0.4157, allocations: 56.03 kB / 1.082 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003157/0.4189, allocations: 1.879 MB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003878/0.4193, allocations: 19.92 kB / 1.083 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.708e-05/0.4193, allocations: 7.938 kB / 1.083 GB, free: 10.22 MB / 0.8419 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.0002716/0.4196, allocations: 161.8 kB / 1.084 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.116e-05/0.4197, allocations: 15.81 kB / 1.084 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008119/0.4205, allocations: 299.3 kB / 1.084 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.4206, allocations: 4 kB / 1.084 GB, free: 9.734 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.4206, allocations: 0 / 1.084 GB, free: 9.734 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.4206, allocations: 7.922 kB / 1.084 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.4221, allocations: 0.7068 MB / 1.085 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.4221, allocations: 0 / 1.085 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005203/0.4227, allocations: 55.95 kB / 1.085 GB, free: 8.902 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/0.4227, allocations: 4 kB / 1.085 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.097e-05/0.4227, allocations: 3.938 kB / 1.085 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.267e-06/0.4228, allocations: 4 kB / 1.085 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.4228, allocations: 0 / 1.085 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.4238, allocations: 0.516 MB / 1.085 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001778/0.424, allocations: 120.9 kB / 1.085 GB, free: 8.219 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.049e-05/0.4241, allocations: 4 kB / 1.085 GB, free: 8.215 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003175/0.4244, allocations: 11.98 kB / 1.085 GB, free: 8.203 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.556e-05/0.4245, allocations: 11.98 kB / 1.085 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/0.4245, allocations: 11.98 kB / 1.085 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002087/0.4248, allocations: 148.1 kB / 1.085 GB, free: 8.031 MB / 0.8419 GB Notification: Performance of sort global known variables: time 5.81e-07/0.4248, allocations: 0 / 1.085 GB, free: 8.031 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006958/0.4255, allocations: 68 kB / 1.086 GB, free: 7.965 MB / 0.8419 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.0002105/0.4257, allocations: 108.8 kB / 1.086 GB, free: 7.848 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001252/0.427, allocations: 454 kB / 1.086 GB, free: 7.395 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.427, allocations: 0 / 1.086 GB, free: 7.395 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003089/0.4273, allocations: 119.9 kB / 1.086 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006852/0.428, allocations: 41.97 kB / 1.086 GB, free: 7.242 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.43, allocations: 0.6352 MB / 1.087 GB, free: 6.578 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005562/0.4306, allocations: 0.7791 MB / 1.088 GB, free: 5.773 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003202/0.431, allocations: 57.91 kB / 1.088 GB, free: 5.719 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.4311, allocations: 19.44 kB / 1.088 GB, free: 5.699 MB / 0.8419 GB Notification: Performance of SimCode: time 5.61e-07/0.4311, allocations: 0 / 1.088 GB, free: 5.699 MB / 0.8419 GB Notification: Performance of Templates: time 0.01103/0.4421, allocations: 2.779 MB / 1.09 GB, free: 2.934 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (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 & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches