Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: 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_11_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_11_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.001239/0.00124, allocations: 105.3 kB / 15.98 MB, free: 6.352 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.001175/0.001175, allocations: 195.3 kB / 16.91 MB, free: 6.184 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.336/1.336, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.556/2.556, allocations: 469.8 MB / 0.7427 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 58.81 kB / 0.9087 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3042, allocations: 159.2 MB / 1.064 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004924/0.3092, allocations: 3.118 MB / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00267/0.3119, allocations: 1.714 MB / 1.069 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.312, allocations: 7.938 kB / 1.069 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009777/0.3131, allocations: 315 kB / 1.069 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0004587/0.3135, allocations: 195.3 kB / 1.069 GB, free: 9.758 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004261/0.314, allocations: 166.1 kB / 1.07 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003686/0.3143, allocations: 323 kB / 1.07 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004705/0.3148, allocations: 257 kB / 1.07 GB, free: 9.031 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.315, allocations: 143.5 kB / 1.07 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.3153, allocations: 175.4 kB / 1.07 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.855e-05/0.3154, allocations: 24 kB / 1.07 GB, free: 8.695 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000355/0.3158, allocations: 239.6 kB / 1.071 GB, free: 8.461 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001218/0.3159, allocations: 103.7 kB / 1.071 GB, free: 8.359 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.316, allocations: 127.4 kB / 1.071 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004039/0.3164, allocations: 327.3 kB / 1.071 GB, free: 7.914 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3164, allocations: 0 / 1.071 GB, free: 7.914 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3165, allocations: 0 / 1.071 GB, free: 7.914 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.053e-05/0.3165, allocations: 0 / 1.071 GB, free: 7.914 MB / 0.8419 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.00098/0.3175, allocations: 0.5459 MB / 1.072 GB, free: 7.32 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.3175, allocations: 12.62 kB / 1.072 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000712/0.3182, allocations: 92.55 kB / 1.072 GB, free: 7.219 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003207/0.3186, allocations: 251.9 kB / 1.072 GB, free: 6.934 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.3186, allocations: 16.8 kB / 1.072 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.3187, allocations: 28.5 kB / 1.072 GB, free: 6.891 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005947/0.3193, allocations: 377.2 kB / 1.072 GB, free: 6.504 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.3193, allocations: 7.938 kB / 1.072 GB, free: 6.496 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.874e-05/0.3194, allocations: 4 kB / 1.072 GB, free: 6.492 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.852e-05/0.3195, allocations: 28.42 kB / 1.072 GB, free: 6.465 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004754/0.3199, allocations: 309.5 kB / 1.073 GB, free: 6.16 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001803/0.3217, allocations: 1.522 MB / 1.074 GB, free: 4.488 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004392/0.3222, allocations: 242.2 kB / 1.074 GB, free: 4.242 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.3224, allocations: 116.8 kB / 1.075 GB, free: 4.125 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001449/0.3225, allocations: 85.09 kB / 1.075 GB, free: 4.023 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.3226, allocations: 42.56 kB / 1.075 GB, free: 3.973 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.452e-06/0.3226, allocations: 3.938 kB / 1.075 GB, free: 3.969 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001263/0.3238, allocations: 0.7945 MB / 1.075 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.3239, allocations: 55.41 kB / 1.076 GB, free: 3.059 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.3241, allocations: 190.7 kB / 1.076 GB, free: 2.863 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.3241, allocations: 33.7 kB / 1.076 GB, free: 2.824 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.3242, allocations: 159.8 kB / 1.076 GB, free: 2.664 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.343e-05/0.3243, allocations: 78.98 kB / 1.076 GB, free: 2.586 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.506e-05/0.3244, allocations: 53.7 kB / 1.076 GB, free: 2.527 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3246, allocations: 330.8 kB / 1.076 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.3247, allocations: 111.9 kB / 1.076 GB, free: 2.086 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002155/0.325, allocations: 169.9 kB / 1.077 GB, free: 1.898 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004005/0.3254, allocations: 296.2 kB / 1.077 GB, free: 1.59 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.3254, allocations: 0 / 1.077 GB, free: 1.59 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007639/0.3261, allocations: 423.6 kB / 1.077 GB, free: 1.168 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3262, allocations: 4 kB / 1.077 GB, free: 1.164 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3262, allocations: 4 kB / 1.077 GB, free: 1.16 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000411/0.3266, allocations: 104.9 kB / 1.077 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002403/0.3269, allocations: 47.97 kB / 1.077 GB, free: 1.008 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4871/0.814, allocations: 1.865 MB / 1.079 GB, free: 21.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002868/0.8143, allocations: 21.55 kB / 1.079 GB, free: 21.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.8143, allocations: 12.31 kB / 1.079 GB, free: 21.32 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.000168/0.8145, allocations: 152.6 kB / 1.079 GB, free: 21.21 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.22e-05/0.8146, allocations: 23.94 kB / 1.079 GB, free: 21.21 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005258/0.8151, allocations: 304.2 kB / 1.08 GB, free: 21.18 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.8151, allocations: 2.312 kB / 1.08 GB, free: 21.18 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.8151, allocations: 0.5625 kB / 1.08 GB, free: 21.18 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.8151, allocations: 1.312 kB / 1.08 GB, free: 21.18 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009379/0.8161, allocations: 0.7001 MB / 1.08 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.8161, allocations: 2.594 kB / 1.08 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.8164, allocations: 57.17 kB / 1.081 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.8164, allocations: 2.828 kB / 1.081 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.8164, allocations: 9.609 kB / 1.081 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.8164, allocations: 5.984 kB / 1.081 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.8165, allocations: 2.062 kB / 1.081 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005959/0.8171, allocations: 0.5176 MB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.221e-05/0.8171, allocations: 114.9 kB / 1.081 GB, free: 20.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.45e-05/0.8172, allocations: 6.172 kB / 1.081 GB, free: 20.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.8174, allocations: 13.31 kB / 1.081 GB, free: 20.62 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.464e-05/0.8174, allocations: 15.78 kB / 1.081 GB, free: 20.61 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.8174, allocations: 8.359 kB / 1.081 GB, free: 20.61 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001268/0.8176, allocations: 150.9 kB / 1.081 GB, free: 20.52 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8176, allocations: 0 / 1.081 GB, free: 20.52 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003522/0.8179, allocations: 62.12 kB / 1.081 GB, free: 20.52 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.0001471/0.8181, allocations: 110.8 kB / 1.082 GB, free: 20.43 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007519/0.8188, allocations: 453 kB / 1.082 GB, free: 20.22 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.8189, allocations: 1.062 kB / 1.082 GB, free: 20.22 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.819, allocations: 123.2 kB / 1.082 GB, free: 20.18 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.8194, allocations: 41.31 kB / 1.082 GB, free: 20.17 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.8206, allocations: 0.7663 MB / 1.083 GB, free: 19.71 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/0.8208, allocations: 0.7699 MB / 1.084 GB, free: 19 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.053e-05/0.8209, allocations: 22.33 kB / 1.084 GB, free: 19 MB / 0.8419 GB Notification: Performance of SimCode: time 2e-07/0.8209, allocations: 4 kB / 1.084 GB, free: 19 MB / 0.8419 GB Notification: Performance of Templates: time 0.006669/0.8276, allocations: 3.591 MB / 1.087 GB, free: 18.75 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches