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.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 3.2.3+maint.om/package.mo", uses=false) 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.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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 105.6 kB / 17.58 MB, free: 5.422 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.001426/0.001426, allocations: 195.9 kB / 18.51 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.583/1.583, allocations: 205.1 MB / 224.4 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 60.12 kB / 280.8 MB, free: 3.062 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1264, allocations: 46.63 MB / 327.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006438/0.1329, allocations: 4.034 MB / 331.4 MB, free: 300 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002686/0.1356, allocations: 1.127 MB / 332.5 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004259/0.1361, allocations: 8 kB / 332.6 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003233/0.1365, allocations: 95.02 kB / 332.6 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004363/0.1369, allocations: 174.4 kB / 332.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006978/0.1376, allocations: 275.6 kB / 333.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.1388, allocations: 0.9601 MB / 334 MB, free: 13.65 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005165/0.1393, allocations: 282.6 kB / 334.3 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008182/0.1401, allocations: 378.8 kB / 334.7 MB, free: 13 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007633/0.1409, allocations: 442.3 kB / 335.1 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002308/0.1411, allocations: 112 kB / 335.2 MB, free: 12.46 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002279/0.1414, allocations: 116 kB / 335.3 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002533/0.1416, allocations: 207.4 kB / 335.5 MB, free: 12.14 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000566/0.1422, allocations: 414.2 kB / 336 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001365/0.1436, allocations: 1.134 MB / 337.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.1436, allocations: 0 / 337.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1436, allocations: 0 / 337.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.069e-05/0.1437, allocations: 0 / 337.1 MB, free: 10.6 MB / 286.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.003347/0.147, allocations: 1.204 MB / 338.3 MB, free: 9.332 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1471, allocations: 8.031 kB / 338.3 MB, free: 9.324 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001353/0.1472, allocations: 98.7 kB / 338.4 MB, free: 9.219 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.1474, allocations: 72.09 kB / 338.5 MB, free: 9.148 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006603/0.148, allocations: 441.8 kB / 338.9 MB, free: 8.676 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.323e-05/0.1481, allocations: 37.69 kB / 338.9 MB, free: 8.641 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.1482, allocations: 60.12 kB / 339 MB, free: 8.582 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002385/0.1506, allocations: 0.9213 MB / 339.9 MB, free: 7.594 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.1507, allocations: 0 / 339.9 MB, free: 7.594 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.564e-05/0.1508, allocations: 28 kB / 339.9 MB, free: 7.566 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/0.1508, allocations: 16 kB / 340 MB, free: 7.551 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003118/0.1539, allocations: 0.9679 MB / 340.9 MB, free: 6.582 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005516/0.1595, allocations: 3.06 MB / 344 MB, free: 3.391 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002603/0.1621, allocations: 0.9043 MB / 344.9 MB, free: 2.438 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001279/0.1634, allocations: 449.8 kB / 345.3 MB, free: 1.996 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.59e-05/0.1635, allocations: 16.41 kB / 345.3 MB, free: 1.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001363/0.1649, allocations: 465 kB / 345.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 3.106e-06/0.1649, allocations: 0 / 345.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of matching and sorting (n=50): time 0.003543/0.1684, allocations: 1.092 MB / 346.9 MB, free: 424 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000199/0.1687, allocations: 273.5 kB / 347.2 MB, free: 88 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/0.1697, allocations: 0.494 MB / 347.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.566e-05/0.1698, allocations: 41.7 kB / 347.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003756/0.1702, allocations: 335.6 kB / 348 MB, free: 15.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002473/0.1705, allocations: 173.6 kB / 348.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003108/0.1708, allocations: 138.5 kB / 348.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000257/0.1711, allocations: 362.8 kB / 348.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/0.1724, allocations: 405.6 kB / 349.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.1741, allocations: 0.6494 MB / 349.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002581/0.1767, allocations: 0.9701 MB / 350.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.1767, allocations: 7.938 kB / 350.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003424/0.1802, allocations: 1.122 MB / 351.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001135/0.1803, allocations: 67.39 kB / 351.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.986e-05/0.1804, allocations: 4 kB / 351.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.456e-05/0.1804, allocations: 15.94 kB / 351.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.1817, allocations: 224 kB / 352.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.901e-05/0.1817, allocations: 12 kB / 352.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/0.1829, allocations: 179 kB / 352.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.465e-05/0.183, allocations: 28 kB / 352.3 MB, free: 10.62 MB / 302.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.0003847/0.1834, allocations: 217.6 kB / 352.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.1835, allocations: 63.23 kB / 352.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001725/0.1837, allocations: 69.59 kB / 352.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.1837, allocations: 7.938 kB / 352.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.1837, allocations: 0 / 352.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.1838, allocations: 3.984 kB / 352.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003699/0.1875, allocations: 1.642 MB / 354.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.1875, allocations: 4 kB / 354.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008714/0.1884, allocations: 155.8 kB / 354.5 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/0.1884, allocations: 0 / 354.5 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.675e-05/0.1885, allocations: 8 kB / 354.5 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.1885, allocations: 0 / 354.5 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.1885, allocations: 4 kB / 354.5 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003578/0.1921, allocations: 1.294 MB / 355.8 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002266/0.1923, allocations: 140.3 kB / 355.9 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.1925, allocations: 12 kB / 355.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008031/0.1933, allocations: 103.9 kB / 356 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/0.1935, allocations: 52.38 kB / 356.1 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-05/0.1935, allocations: 16 kB / 356.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005577/0.1941, allocations: 354.8 kB / 356.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1941, allocations: 0 / 356.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006664/0.1948, allocations: 167.7 kB / 356.6 MB, free: 6.242 MB / 302.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.003984/0.1988, allocations: 1.851 MB / 358.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003027/0.2018, allocations: 1.021 MB / 359.5 MB, free: 3.316 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.2018, allocations: 192 / 359.5 MB, free: 3.316 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.203, allocations: 414.2 kB / 359.9 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006759/0.2037, allocations: 93.86 kB / 360 MB, free: 2.812 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/0.2169, allocations: 6.282 MB / 366.3 MB, free: 12.26 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005745/0.2176, allocations: 0.8627 MB / 367.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005168/0.2181, allocations: 80.64 kB / 367.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003907/0.2185, allocations: 207.4 kB / 367.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2185, allocations: 7.938 kB / 367.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2341/0.4526, allocations: 13.1 MB / 380.5 MB, free: 55.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.837/9.29, allocations: 13.14 kB / 380.5 MB, free: 55.59 MB / 318.1 MB (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 4e-11 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) 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) Reference file matches