Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001256/0.001256, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001351/0.001351, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.377/1.377, allocations: 222.9 MB / 241.1 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002328/0.002328, allocations: 279.4 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9679/0.9679, allocations: 169.3 MB / 0.499 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 95.84 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4629/0.465, allocations: 86.98 MB / 0.767 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004648/0.4697, allocations: 3.071 MB / 0.77 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00265/0.4723, allocations: 1.73 MB / 0.7717 GB, free: 15.25 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001668/0.4725, allocations: 4 kB / 0.7717 GB, free: 15.25 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.4735, allocations: 334.7 kB / 0.7721 GB, free: 14.92 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005371/0.4741, allocations: 207.1 kB / 0.7723 GB, free: 14.72 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004696/0.4746, allocations: 183.5 kB / 0.7724 GB, free: 14.54 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004074/0.475, allocations: 319 kB / 0.7727 GB, free: 14.23 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003734/0.4754, allocations: 244.7 kB / 0.773 GB, free: 13.98 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002195/0.4756, allocations: 127.6 kB / 0.7731 GB, free: 13.86 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/0.4759, allocations: 159.4 kB / 0.7732 GB, free: 13.7 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.893e-05/0.476, allocations: 24 kB / 0.7733 GB, free: 13.68 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004014/0.4764, allocations: 243.5 kB / 0.7735 GB, free: 13.44 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.4765, allocations: 103.8 kB / 0.7736 GB, free: 13.34 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.4767, allocations: 123.4 kB / 0.7737 GB, free: 13.22 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005385/0.4772, allocations: 429.3 kB / 0.7741 GB, free: 12.8 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.4772, allocations: 0 / 0.7741 GB, free: 12.8 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4772, allocations: 0 / 0.7741 GB, free: 12.8 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.979e-06/0.4772, allocations: 7.922 kB / 0.7741 GB, free: 12.79 MB / 0.545 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.0009354/0.4782, allocations: 0.5419 MB / 0.7747 GB, free: 12.2 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.4782, allocations: 8.031 kB / 0.7747 GB, free: 12.2 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007608/0.479, allocations: 92.55 kB / 0.7748 GB, free: 12.11 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.4793, allocations: 267.9 kB / 0.775 GB, free: 11.8 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.4794, allocations: 12.81 kB / 0.775 GB, free: 11.79 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.431e-05/0.4795, allocations: 28.47 kB / 0.7751 GB, free: 11.77 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005683/0.48, allocations: 373.2 kB / 0.7754 GB, free: 11.38 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.4801, allocations: 3.938 kB / 0.7754 GB, free: 11.38 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.089e-05/0.4801, allocations: 11.98 kB / 0.7754 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001019/0.4802, allocations: 32.41 kB / 0.7755 GB, free: 11.33 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004624/0.4807, allocations: 309.5 kB / 0.7757 GB, free: 11.03 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.4824, allocations: 1.51 MB / 0.7772 GB, free: 9.367 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004274/0.4828, allocations: 234.3 kB / 0.7774 GB, free: 9.129 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.483, allocations: 116.8 kB / 0.7776 GB, free: 9.012 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001362/0.4831, allocations: 89.09 kB / 0.7776 GB, free: 8.906 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.391e-05/0.4832, allocations: 34.56 kB / 0.7777 GB, free: 8.863 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 4.168e-06/0.4832, allocations: 3.984 kB / 0.7777 GB, free: 8.859 MB / 0.545 GB Notification: Performance of matching and sorting (n=19): time 0.001209/0.4844, allocations: 0.7957 MB / 0.7785 GB, free: 8.016 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.4844, allocations: 55.39 kB / 0.7785 GB, free: 7.949 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001839/0.4846, allocations: 195.6 kB / 0.7787 GB, free: 7.75 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.4846, allocations: 29.7 kB / 0.7787 GB, free: 7.715 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.471e-05/0.4847, allocations: 159.9 kB / 0.7789 GB, free: 7.555 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.309e-05/0.4848, allocations: 70.98 kB / 0.7789 GB, free: 7.484 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.208e-05/0.4849, allocations: 61.59 kB / 0.779 GB, free: 7.418 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.485, allocations: 330.8 kB / 0.7793 GB, free: 7.086 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.4852, allocations: 119.9 kB / 0.7794 GB, free: 6.969 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.4854, allocations: 163 kB / 0.7796 GB, free: 6.789 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003732/0.4858, allocations: 300.2 kB / 0.7799 GB, free: 6.477 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4858, allocations: 0 / 0.7799 GB, free: 6.477 MB / 0.545 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007267/0.4865, allocations: 421.1 kB / 0.7803 GB, free: 6.059 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.4866, allocations: 8 kB / 0.7803 GB, free: 6.051 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.4866, allocations: 0 / 0.7803 GB, free: 6.051 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004117/0.487, allocations: 104.9 kB / 0.7804 GB, free: 5.945 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000236/0.4872, allocations: 47.95 kB / 0.7804 GB, free: 5.898 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001847/0.4891, allocations: 1.871 MB / 0.7823 GB, free: 3.883 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.4893, allocations: 23.94 kB / 0.7823 GB, free: 3.859 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.4893, allocations: 8.062 kB / 0.7823 GB, free: 3.852 MB / 0.545 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.000153/0.4895, allocations: 161.8 kB / 0.7824 GB, free: 3.684 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.941e-05/0.4896, allocations: 15.81 kB / 0.7825 GB, free: 3.668 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004689/0.49, allocations: 295.3 kB / 0.7827 GB, free: 3.375 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.4901, allocations: 4 kB / 0.7827 GB, free: 3.371 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.4901, allocations: 3.938 kB / 0.7827 GB, free: 3.367 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.4901, allocations: 7.938 kB / 0.7828 GB, free: 3.359 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000853/0.4909, allocations: 0.7019 MB / 0.7834 GB, free: 2.598 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.4909, allocations: 4 kB / 0.7834 GB, free: 2.594 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/0.4912, allocations: 60.08 kB / 0.7835 GB, free: 2.535 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.4913, allocations: 4 kB / 0.7835 GB, free: 2.531 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.4913, allocations: 7.938 kB / 0.7835 GB, free: 2.523 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.4913, allocations: 4 kB / 0.7835 GB, free: 2.52 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4913, allocations: 8 kB / 0.7835 GB, free: 2.512 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005845/0.4919, allocations: 0.5105 MB / 0.784 GB, free: 1.98 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.492, allocations: 120.8 kB / 0.7841 GB, free: 1.844 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.628e-05/0.492, allocations: 11.94 kB / 0.7841 GB, free: 1.832 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.4922, allocations: 11.98 kB / 0.7842 GB, free: 1.82 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.293e-05/0.4923, allocations: 16.05 kB / 0.7842 GB, free: 1.805 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.4923, allocations: 4 kB / 0.7842 GB, free: 1.801 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001303/0.4924, allocations: 144.1 kB / 0.7843 GB, free: 1.656 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4924, allocations: 0 / 0.7843 GB, free: 1.656 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00035/0.4928, allocations: 72 kB / 0.7844 GB, free: 1.586 MB / 0.545 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.0001476/0.4929, allocations: 107.2 kB / 0.7845 GB, free: 1.469 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006945/0.4936, allocations: 422.6 kB / 0.7849 GB, free: 1.043 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4937, allocations: 0 / 0.7849 GB, free: 1.043 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001585/0.4938, allocations: 127.8 kB / 0.785 GB, free: 0.918 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/0.4942, allocations: 44.19 kB / 0.7851 GB, free: 0.8789 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.4954, allocations: 0.664 MB / 0.7857 GB, free: 184 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.4958, allocations: 0.7752 MB / 0.7865 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.733e-05/0.4958, allocations: 27.42 kB / 0.7865 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of SimCode: time 2.11e-07/0.4959, allocations: 0 / 0.7865 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of Templates: time 0.005844/0.5017, allocations: 3.608 MB / 0.79 GB, free: 11.74 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)