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.001475/0.001475, allocations: 116.9 kB / 18.45 MB, free: 4.699 MB / 14.72 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.001654/0.001654, allocations: 212.3 kB / 21.42 MB, free: 1.738 MB / 14.72 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 1.623/1.623, allocations: 207.6 MB / 231.8 MB, free: 4.051 MB / 174.1 MB " [Timeout remaining time 178] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 55.94 kB / 342.3 MB, free: 9.941 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1131, allocations: 49.12 MB / 391.5 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006524/0.1196, allocations: 4.064 MB / 395.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002796/0.1224, allocations: 1.123 MB / 396.6 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003277/0.1228, allocations: 11.94 kB / 396.7 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003095/0.1231, allocations: 103 kB / 396.8 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004173/0.1235, allocations: 170.5 kB / 396.9 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000668/0.1242, allocations: 283.6 kB / 397.2 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001021/0.1252, allocations: 0.9524 MB / 398.2 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003551/0.1255, allocations: 206.6 kB / 398.4 MB, free: 1.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004172/0.1259, allocations: 386.8 kB / 398.7 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000573/0.1265, allocations: 438.3 kB / 399.2 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002009/0.1267, allocations: 120 kB / 399.3 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.1269, allocations: 112 kB / 399.4 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002747/0.1271, allocations: 211.4 kB / 399.6 MB, free: 500 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004707/0.1276, allocations: 414.3 kB / 400 MB, free: 84 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001254/0.1289, allocations: 1.141 MB / 401.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1289, allocations: 4 kB / 401.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1289, allocations: 3.938 kB / 401.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.1289, allocations: 0 / 401.1 MB, free: 14.93 MB / 334.1 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.003091/0.132, allocations: 1.203 MB / 402.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.132, allocations: 8.031 kB / 402.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000144/0.1322, allocations: 102.7 kB / 402.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.1323, allocations: 76.47 kB / 402.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000708/0.133, allocations: 446.1 kB / 403 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.869e-05/0.1331, allocations: 41.69 kB / 403 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.1332, allocations: 56.12 kB / 403.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002334/0.1355, allocations: 0.9252 MB / 404 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.1355, allocations: 0 / 404 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.201e-05/0.1356, allocations: 28 kB / 404 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.1356, allocations: 12 kB / 404 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003195/0.1388, allocations: 0.9756 MB / 405 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005489/0.1443, allocations: 3.056 MB / 408.1 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002597/0.1469, allocations: 0.8889 MB / 409 MB, free: 6.773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001345/0.1483, allocations: 417.9 kB / 409.4 MB, free: 6.363 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.835e-05/0.1483, allocations: 12.56 kB / 409.4 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001374/0.1497, allocations: 465 kB / 409.8 MB, free: 5.883 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.015e-06/0.1497, allocations: 0 / 409.8 MB, free: 5.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003722/0.1534, allocations: 1.092 MB / 410.9 MB, free: 4.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002946/0.1537, allocations: 269.5 kB / 411.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/0.1548, allocations: 0.5057 MB / 411.7 MB, free: 3.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.377e-05/0.1549, allocations: 41.7 kB / 411.7 MB, free: 3.891 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003992/0.1552, allocations: 344.4 kB / 412.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/0.1555, allocations: 178.5 kB / 412.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003241/0.1558, allocations: 138.6 kB / 412.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002804/0.1561, allocations: 366.8 kB / 412.7 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.1575, allocations: 401.7 kB / 413.1 MB, free: 2.469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001729/0.1592, allocations: 0.6533 MB / 413.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002757/0.162, allocations: 0.9701 MB / 414.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.162, allocations: 0 / 414.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003675/0.1657, allocations: 1.134 MB / 415.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001474/0.1658, allocations: 63.41 kB / 415.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/0.1658, allocations: 8 kB / 416 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.308e-05/0.1659, allocations: 15.73 kB / 416 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/0.1671, allocations: 220 kB / 416.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.021e-05/0.1671, allocations: 15.92 kB / 416.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.1684, allocations: 175.4 kB / 416.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.969e-05/0.1684, allocations: 39.98 kB / 416.4 MB, free: 14.94 MB / 350.1 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.0004037/0.1688, allocations: 213.6 kB / 416.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.169, allocations: 63.62 kB / 416.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001698/0.1691, allocations: 69.52 kB / 416.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.1691, allocations: 4 kB / 416.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.1691, allocations: 0 / 416.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.862e-06/0.1691, allocations: 3.938 kB / 416.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003747/0.1729, allocations: 1.642 MB / 418.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.1729, allocations: 3.938 kB / 418.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008172/0.1737, allocations: 151.8 kB / 418.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.1737, allocations: 3.938 kB / 418.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.075e-05/0.1738, allocations: 15.98 kB / 418.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.1738, allocations: 4 kB / 418.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1738, allocations: 0 / 418.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003694/0.1775, allocations: 1.288 MB / 419.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001988/0.1777, allocations: 144.6 kB / 420 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.764e-05/0.1778, allocations: 12 kB / 420 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008329/0.1786, allocations: 103.9 kB / 420.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.1788, allocations: 48.38 kB / 420.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-05/0.1788, allocations: 19.98 kB / 420.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005633/0.1794, allocations: 350.9 kB / 420.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1794, allocations: 0 / 420.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006661/0.1801, allocations: 171.8 kB / 420.7 MB, free: 10.55 MB / 350.1 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.004081/0.1841, allocations: 1.863 MB / 422.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003069/0.1872, allocations: 0.966 MB / 423.5 MB, free: 7.684 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/0.1872, allocations: 8.25 kB / 423.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.1885, allocations: 386.2 kB / 423.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008294/0.1893, allocations: 93.94 kB / 424 MB, free: 7.199 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/0.2032, allocations: 6.166 MB / 430.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006325/0.2038, allocations: 0.8628 MB / 431 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004445/0.2042, allocations: 72.67 kB / 431.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004583/0.2047, allocations: 207.3 kB / 431.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of SimCode: time 1.603e-06/0.2047, allocations: 0 / 431.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04646/0.2512, allocations: 13.37 MB / 444.7 MB, free: 2.156 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.439/9.69, allocations: 11.94 kB / 444.7 MB, free: 2.145 MB / 366.1 MB " [Timeout remaining time 650] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 12.529807800005074]