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: "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_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.001132/0.001136, allocations: 108 kB / 15.61 MB, free: 152 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.001186/0.001186, allocations: 194.2 kB / 16.53 MB, free: 6.664 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.304/1.304, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002186/0.002186, allocations: 278.8 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9335/0.9335, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 100.1 kB / 0.5954 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1373, allocations: 86.98 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004753/0.1421, allocations: 3.063 MB / 0.6833 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002624/0.1447, allocations: 1.73 MB / 0.685 GB, free: 11.79 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001763/0.1449, allocations: 4 kB / 0.685 GB, free: 11.79 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.1459, allocations: 329.2 kB / 0.6853 GB, free: 11.46 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005245/0.1465, allocations: 211.1 kB / 0.6855 GB, free: 11.26 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004944/0.147, allocations: 187.5 kB / 0.6857 GB, free: 11.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003724/0.1474, allocations: 315 kB / 0.686 GB, free: 10.77 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004022/0.1478, allocations: 240.7 kB / 0.6862 GB, free: 10.53 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002115/0.148, allocations: 135.5 kB / 0.6863 GB, free: 10.4 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00034/0.1483, allocations: 155.5 kB / 0.6865 GB, free: 10.25 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.352e-05/0.1484, allocations: 27.94 kB / 0.6865 GB, free: 10.22 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000452/0.1489, allocations: 251.5 kB / 0.6868 GB, free: 9.973 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.149, allocations: 95.78 kB / 0.6868 GB, free: 9.879 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001469/0.1491, allocations: 123.4 kB / 0.687 GB, free: 9.758 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005552/0.1497, allocations: 418.7 kB / 0.6874 GB, free: 9.348 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.1497, allocations: 0 / 0.6874 GB, free: 9.348 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1497, allocations: 0 / 0.6874 GB, free: 9.348 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.1497, allocations: 0 / 0.6874 GB, free: 9.348 MB / 494.1 MB 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.0009121/0.1507, allocations: 0.5459 MB / 0.6879 GB, free: 8.754 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.1507, allocations: 12.03 kB / 0.6879 GB, free: 8.742 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.533e-05/0.1508, allocations: 58.72 kB / 0.688 GB, free: 8.676 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007397/0.1515, allocations: 92.55 kB / 0.6881 GB, free: 8.586 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003059/0.1518, allocations: 255.9 kB / 0.6883 GB, free: 8.297 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.1519, allocations: 16.75 kB / 0.6883 GB, free: 8.281 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.152, allocations: 32.53 kB / 0.6883 GB, free: 8.25 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005391/0.1525, allocations: 377 kB / 0.6887 GB, free: 7.859 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.1525, allocations: 0 / 0.6887 GB, free: 7.859 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/0.1526, allocations: 7.984 kB / 0.6887 GB, free: 7.852 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001103/0.1527, allocations: 36.41 kB / 0.6887 GB, free: 7.816 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004529/0.1532, allocations: 309.5 kB / 0.689 GB, free: 7.516 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001638/0.1548, allocations: 1.525 MB / 0.6905 GB, free: 5.836 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004188/0.1552, allocations: 238.4 kB / 0.6908 GB, free: 5.594 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.1554, allocations: 118.7 kB / 0.6909 GB, free: 5.477 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001372/0.1556, allocations: 89.09 kB / 0.691 GB, free: 5.371 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.1556, allocations: 34.56 kB / 0.691 GB, free: 5.328 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.493e-06/0.1556, allocations: 0 / 0.691 GB, free: 5.328 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001235/0.1568, allocations: 0.7905 MB / 0.6918 GB, free: 4.488 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.1569, allocations: 59.41 kB / 0.6918 GB, free: 4.418 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.1571, allocations: 196.4 kB / 0.692 GB, free: 4.219 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.1571, allocations: 25.7 kB / 0.692 GB, free: 4.188 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.409e-05/0.1572, allocations: 155.9 kB / 0.6922 GB, free: 4.031 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.422e-05/0.1572, allocations: 74.94 kB / 0.6922 GB, free: 3.957 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.759e-05/0.1573, allocations: 49.7 kB / 0.6923 GB, free: 3.902 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.007e-05/0.1574, allocations: 334.8 kB / 0.6926 GB, free: 3.566 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.1576, allocations: 119.9 kB / 0.6927 GB, free: 3.449 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.1578, allocations: 170.1 kB / 0.6929 GB, free: 3.262 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003658/0.1582, allocations: 299 kB / 0.6932 GB, free: 2.953 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.1582, allocations: 0 / 0.6932 GB, free: 2.953 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007176/0.1589, allocations: 422 kB / 0.6936 GB, free: 2.531 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.1589, allocations: 8.031 kB / 0.6936 GB, free: 2.523 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.159, allocations: 7.938 kB / 0.6936 GB, free: 2.516 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004011/0.1594, allocations: 96.75 kB / 0.6937 GB, free: 2.418 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/0.1596, allocations: 51.91 kB / 0.6937 GB, free: 2.367 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001777/0.1614, allocations: 1.879 MB / 0.6956 GB, free: 356 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/0.1616, allocations: 19.95 kB / 0.6956 GB, free: 336 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.418e-05/0.1617, allocations: 15.98 kB / 0.6956 GB, free: 320 kB / 494.1 MB 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.0001404/0.1618, allocations: 154.4 kB / 0.6958 GB, free: 156 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.909e-05/0.1619, allocations: 19.88 kB / 0.6958 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004647/0.1623, allocations: 300.9 kB / 0.6961 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.1624, allocations: 3.938 kB / 0.6961 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.1624, allocations: 4 kB / 0.6961 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1624, allocations: 7.922 kB / 0.6961 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000826/0.1632, allocations: 0.6991 MB / 0.6968 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1632, allocations: 0 / 0.6968 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000295/0.1635, allocations: 59.89 kB / 0.6968 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1635, allocations: 3.938 kB / 0.6968 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.1636, allocations: 8 kB / 0.6968 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1636, allocations: 0 / 0.6968 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.1636, allocations: 4 kB / 0.6968 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005605/0.1641, allocations: 0.5095 MB / 0.6973 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.1643, allocations: 116.8 kB / 0.6974 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.681e-05/0.1643, allocations: 7.984 kB / 0.6974 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.1645, allocations: 11.98 kB / 0.6975 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.233e-05/0.1645, allocations: 15.92 kB / 0.6975 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.1645, allocations: 8 kB / 0.6975 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001317/0.1647, allocations: 144.1 kB / 0.6976 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1647, allocations: 4.062 kB / 0.6976 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003489/0.165, allocations: 64 kB / 0.6977 GB, free: 14.07 MB / 0.4981 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.0008317/0.1659, allocations: 1.063 MB / 0.6987 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006899/0.1666, allocations: 442.4 kB / 0.6991 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.1666, allocations: 0 / 0.6991 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.1668, allocations: 118.1 kB / 0.6993 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003787/0.1671, allocations: 49.48 kB / 0.6993 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.1707, allocations: 2.885 MB / 0.7021 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.1711, allocations: 0.7753 MB / 0.7029 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000175/0.1712, allocations: 57.91 kB / 0.7029 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.1714, allocations: 67.41 kB / 0.703 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1714, allocations: 0 / 0.703 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/0.195, allocations: 5.016 MB / 0.7079 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.58, allocations: 5.812 kB / 0.7079 GB, free: 3.586 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)