Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008928/0.0008928, allocations: 83.64 kB / 21.43 MB, free: 3.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004425/0.004425, allocations: 164 kB / 24.7 MB, free: 9.414 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8356/0.8356, allocations: 158.6 MB / 186.5 MB, free: 3.027 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.307e-05/1.441e-05, allocations: 6.281 kB / 298.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.129/0.129, allocations: 3.633 MB / 302.1 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001528/0.1306, allocations: 1.094 MB / 303.2 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.1307, allocations: 12.72 kB / 303.2 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.1309, allocations: 96.31 kB / 303.3 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002126/0.1311, allocations: 180.6 kB / 303.5 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003627/0.1315, allocations: 290.2 kB / 303.7 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005235/0.132, allocations: 0.9903 MB / 304.7 MB, free: 12.51 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002282/0.1322, allocations: 181.6 kB / 304.9 MB, free: 12.43 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003622/0.1326, allocations: 0.5473 MB / 305.5 MB, free: 12.16 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000283/0.1329, allocations: 342.1 kB / 305.8 MB, free: 12.05 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.133, allocations: 113.5 kB / 305.9 MB, free: 12.05 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.733e-05/0.1331, allocations: 117.4 kB / 306 MB, free: 12.05 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.311e-05/0.1332, allocations: 210.6 kB / 306.2 MB, free: 11.91 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001962/0.1333, allocations: 299 kB / 306.5 MB, free: 11.76 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007515/0.1341, allocations: 1.225 MB / 307.7 MB, free: 11.29 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.1341, allocations: 0 / 307.7 MB, free: 11.29 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1341, allocations: 0 / 307.7 MB, free: 11.29 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.1341, allocations: 1.375 kB / 307.7 MB, free: 11.29 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001467/0.1356, allocations: 1.126 MB / 308.9 MB, free: 10.6 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.1356, allocations: 13.67 kB / 308.9 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.02e-05/0.1357, allocations: 94.61 kB / 309 MB, free: 10.53 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.501e-05/0.1358, allocations: 79.41 kB / 309 MB, free: 10.49 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004025/0.1362, allocations: 383.9 kB / 309.4 MB, free: 10.2 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.1362, allocations: 46.09 kB / 309.5 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.05e-05/0.1363, allocations: 52.62 kB / 309.5 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.1375, allocations: 1.128 MB / 310.6 MB, free: 9.473 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.1375, allocations: 3.938 kB / 310.7 MB, free: 9.469 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.296e-05/0.1375, allocations: 23.05 kB / 310.7 MB, free: 9.453 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.1376, allocations: 13.91 kB / 310.7 MB, free: 9.453 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/0.1391, allocations: 0.9759 MB / 311.7 MB, free: 9.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002442/0.1416, allocations: 2.784 MB / 314.4 MB, free: 7.25 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.1429, allocations: 0.73 MB / 315.2 MB, free: 7.012 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006488/0.1435, allocations: 428.4 kB / 315.6 MB, free: 6.875 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.1436, allocations: 12.58 kB / 315.6 MB, free: 6.875 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006372/0.1442, allocations: 470.1 kB / 316.1 MB, free: 6.711 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 1.703e-06/0.1442, allocations: 0 / 316.1 MB, free: 6.711 MB / 282.7 MB Notification: Performance of matching and sorting (n=50): time 0.001692/0.1459, allocations: 1.086 MB / 317.2 MB, free: 6.367 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.1459, allocations: 272.5 kB / 317.4 MB, free: 6.051 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004038/0.1463, allocations: 0.5126 MB / 317.9 MB, free: 5.789 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.1464, allocations: 38.56 kB / 318 MB, free: 5.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.1465, allocations: 349.3 kB / 318.3 MB, free: 5.469 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.36e-05/0.1466, allocations: 175.5 kB / 318.5 MB, free: 5.328 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.1467, allocations: 136.9 kB / 318.6 MB, free: 5.242 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.742e-05/0.1468, allocations: 371.9 kB / 319 MB, free: 4.883 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006242/0.1474, allocations: 459.7 kB / 319.4 MB, free: 4.621 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007088/0.1481, allocations: 0.9037 MB / 320.3 MB, free: 3.785 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.1493, allocations: 0.9699 MB / 321.3 MB, free: 3.105 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1493, allocations: 2.438 kB / 321.3 MB, free: 3.105 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001489/0.1508, allocations: 1.19 MB / 322.5 MB, free: 2.441 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.1508, allocations: 65.84 kB / 322.6 MB, free: 2.375 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1508, allocations: 6.094 kB / 322.6 MB, free: 2.375 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.1508, allocations: 9.5 kB / 322.6 MB, free: 2.375 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004912/0.1513, allocations: 229.8 kB / 322.8 MB, free: 2.305 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.1513, allocations: 13.97 kB / 322.8 MB, free: 2.301 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004798/0.1518, allocations: 185.2 kB / 323 MB, free: 2.199 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-05/0.1518, allocations: 32.28 kB / 323 MB, free: 2.191 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * 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 prepare postOptimizeDAE: time 0.0001554/0.152, allocations: 215.2 kB / 323.2 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.56e-05/0.1521, allocations: 60.06 kB / 323.3 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.621e-05/0.1521, allocations: 63.69 kB / 323.4 MB, free: 1.934 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.1521, allocations: 8.844 kB / 323.4 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.1521, allocations: 1.594 kB / 323.4 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1522, allocations: 11.92 kB / 323.4 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001684/0.1538, allocations: 1.483 MB / 324.9 MB, free: 0.957 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1538, allocations: 1.281 kB / 324.9 MB, free: 0.957 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000367/0.1542, allocations: 144.2 kB / 325 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.1542, allocations: 6.531 kB / 325 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.1542, allocations: 11.73 kB / 325 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.1542, allocations: 9.25 kB / 325 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1542, allocations: 0 / 325 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.1559, allocations: 1.291 MB / 326.3 MB, free: 188 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.258e-05/0.156, allocations: 67.42 kB / 326.4 MB, free: 136 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.449e-05/0.156, allocations: 16.44 kB / 326.4 MB, free: 124 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003479/0.1564, allocations: 102.6 kB / 326.5 MB, free: 76 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.043e-05/0.1565, allocations: 54.25 kB / 326.6 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/0.1565, allocations: 13.62 kB / 326.6 MB, free: 36 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003097/0.1568, allocations: 357.2 kB / 326.9 MB, free: 15.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1568, allocations: 0 / 326.9 MB, free: 15.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003408/0.1572, allocations: 175.5 kB / 327.1 MB, free: 15.79 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001984/0.1591, allocations: 1.848 MB / 328.9 MB, free: 14.53 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.1605, allocations: 1.02 MB / 330 MB, free: 13.94 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1606, allocations: 0 / 330 MB, free: 13.94 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006165/0.1612, allocations: 408.6 kB / 330.4 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.1616, allocations: 97.88 kB / 330.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006901/0.1685, allocations: 6.365 MB / 336.8 MB, free: 7.004 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001509/0.1686, allocations: 263.3 kB / 337.1 MB, free: 6.723 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000214/0.1688, allocations: 74.88 kB / 337.1 MB, free: 6.652 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002612/0.1691, allocations: 212.4 kB / 337.4 MB, free: 6.441 MB / 298.7 MB Notification: Performance of SimCode: time 7.91e-07/0.1691, allocations: 0 / 337.4 MB, free: 6.441 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02435/0.1935, allocations: 14.69 MB / 352 MB, free: 7.688 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.35/7.543, allocations: 11.92 kB / 352.1 MB, free: 7.676 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.csv --start-time 0 --stop-time 1e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.97668e-11 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,Nand.C4.v,Nand.C7.v Variables in the result:time,Nand.C4.v,Nand.C7.v [Calling sys.exit(0), Time elapsed: 9.258522402495146]