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.00129/0.00129, allocations: 100.3 kB / 17.58 MB, free: 5.418 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.00138/0.00138, allocations: 192.1 kB / 18.51 MB, free: 4.508 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.437/1.437, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001472/0.001472, allocations: 52.39 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 46.64 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005323/0.1139, allocations: 4.046 MB / 331.4 MB, free: 312 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002326/0.1162, allocations: 1.119 MB / 332.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003274/0.1166, allocations: 8 kB / 332.6 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002718/0.1169, allocations: 103 kB / 332.7 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003292/0.1172, allocations: 162.4 kB / 332.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005909/0.1178, allocations: 283.6 kB / 333.1 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008316/0.1187, allocations: 0.968 MB / 334.1 MB, free: 13.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004297/0.1191, allocations: 274.6 kB / 334.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003937/0.1195, allocations: 366.9 kB / 334.7 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004313/0.12, allocations: 450.3 kB / 335.1 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001417/0.1201, allocations: 116 kB / 335.2 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.1203, allocations: 112 kB / 335.3 MB, free: 12.37 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001684/0.1204, allocations: 211.4 kB / 335.6 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003528/0.1208, allocations: 414.2 kB / 336 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009732/0.1218, allocations: 1.134 MB / 337.1 MB, free: 10.62 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1218, allocations: 0 / 337.1 MB, free: 10.62 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1218, allocations: 4 kB / 337.1 MB, free: 10.61 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.623e-05/0.1218, allocations: 0 / 337.1 MB, free: 10.61 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.002788/0.1246, allocations: 1.192 MB / 338.3 MB, free: 9.355 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.1247, allocations: 8.031 kB / 338.3 MB, free: 9.348 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000124/0.1248, allocations: 98.7 kB / 338.4 MB, free: 9.242 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.125, allocations: 72.09 kB / 338.5 MB, free: 9.172 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005474/0.1255, allocations: 441.9 kB / 338.9 MB, free: 8.699 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.016e-05/0.1256, allocations: 41.69 kB / 338.9 MB, free: 8.66 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.1257, allocations: 60.06 kB / 339 MB, free: 8.602 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002088/0.1278, allocations: 0.9213 MB / 339.9 MB, free: 7.613 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.1278, allocations: 4 kB / 339.9 MB, free: 7.609 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.146e-05/0.1279, allocations: 24 kB / 339.9 MB, free: 7.586 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.856e-05/0.1279, allocations: 16 kB / 340 MB, free: 7.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002912/0.1308, allocations: 0.9718 MB / 340.9 MB, free: 6.598 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004662/0.1355, allocations: 3.056 MB / 344 MB, free: 3.41 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002466/0.138, allocations: 0.9121 MB / 344.9 MB, free: 2.449 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/0.1392, allocations: 437.9 kB / 345.3 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.216e-05/0.1393, allocations: 12.42 kB / 345.3 MB, free: 2.008 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001276/0.1406, allocations: 465 kB / 345.8 MB, free: 1.539 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 7.634e-06/0.1406, allocations: 0 / 345.8 MB, free: 1.539 MB / 286.1 MB Notification: Performance of matching and sorting (n=50): time 0.003389/0.144, allocations: 1.095 MB / 346.9 MB, free: 448 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001533/0.1442, allocations: 269.5 kB / 347.1 MB, free: 116 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007938/0.145, allocations: 0.5057 MB / 347.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.941e-05/0.1451, allocations: 37.7 kB / 347.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002834/0.1453, allocations: 331.6 kB / 348 MB, free: 15.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.1455, allocations: 169.6 kB / 348.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002519/0.1458, allocations: 138.5 kB / 348.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.146, allocations: 362.8 kB / 348.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.1472, allocations: 401.7 kB / 349.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.1485, allocations: 0.6572 MB / 349.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002418/0.1509, allocations: 0.974 MB / 350.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.05e-05/0.151, allocations: 4 kB / 350.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003004/0.154, allocations: 1.122 MB / 351.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.643e-05/0.1541, allocations: 67.33 kB / 351.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.1541, allocations: 8 kB / 351.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.908e-05/0.1541, allocations: 11.94 kB / 351.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.1552, allocations: 224 kB / 352.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.75e-05/0.1552, allocations: 11.98 kB / 352.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.1562, allocations: 187 kB / 352.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.449e-05/0.1563, allocations: 28 kB / 352.3 MB, free: 10.64 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.0003036/0.1566, allocations: 221.6 kB / 352.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.497e-05/0.1567, allocations: 63.25 kB / 352.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001386/0.1569, allocations: 65.58 kB / 352.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.1569, allocations: 7.938 kB / 352.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.1569, allocations: 4 kB / 352.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.1569, allocations: 3.984 kB / 352.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003245/0.1602, allocations: 1.642 MB / 354.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1602, allocations: 0 / 354.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007716/0.161, allocations: 147.8 kB / 354.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-06/0.161, allocations: 3.984 kB / 354.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/0.161, allocations: 8 kB / 354.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.161, allocations: 4 kB / 354.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.161, allocations: 0 / 354.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00329/0.1643, allocations: 1.294 MB / 355.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.1645, allocations: 140.3 kB / 355.9 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.82e-05/0.1646, allocations: 12 kB / 355.9 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007832/0.1654, allocations: 99.92 kB / 356 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.1656, allocations: 56.36 kB / 356.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.89e-05/0.1656, allocations: 16 kB / 356.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004813/0.1661, allocations: 354.8 kB / 356.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.7e-07/0.1661, allocations: 0 / 356.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005825/0.1667, allocations: 171.7 kB / 356.6 MB, free: 6.258 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.003583/0.1703, allocations: 1.843 MB / 358.5 MB, free: 4.383 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00271/0.173, allocations: 1.021 MB / 359.5 MB, free: 3.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.173, allocations: 4 kB / 359.5 MB, free: 3.336 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.1742, allocations: 414.7 kB / 359.9 MB, free: 2.926 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006447/0.1748, allocations: 92.98 kB / 360 MB, free: 2.836 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/0.1864, allocations: 6.286 MB / 366.3 MB, free: 12.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/0.1869, allocations: 0.8549 MB / 367.1 MB, free: 11.4 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005041/0.1875, allocations: 80.66 kB / 367.2 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004156/0.1879, allocations: 211.3 kB / 367.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of SimCode: time 4.859e-06/0.1879, allocations: 0 / 367.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2347/0.4226, allocations: 13.11 MB / 380.5 MB, free: 55.11 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.17/8.593, allocations: 13.3 kB / 380.5 MB, free: 55.11 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