Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00102/0.00102, allocations: 91.67 kB / 20.68 MB, free: 3.871 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.0009015/0.0009015, allocations: 166 kB / 23.95 MB, free: 0.6016 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8912/0.8912, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.001e-05/2.212e-05, allocations: 6.219 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003586/0.003608, allocations: 3.844 MB / 328.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001773/0.005381, allocations: 1.187 MB / 329.6 MB, free: 10.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002869/0.005668, allocations: 15.94 kB / 329.6 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002096/0.005877, allocations: 110.8 kB / 329.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000293/0.00617, allocations: 194.1 kB / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005656/0.006736, allocations: 331.6 kB / 330.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008741/0.00761, allocations: 1.12 MB / 331.4 MB, free: 9.102 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002821/0.007892, allocations: 183 kB / 331.5 MB, free: 8.918 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006019/0.008494, allocations: 0.6044 MB / 332.1 MB, free: 8.312 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002869/0.008781, allocations: 347.1 kB / 332.5 MB, free: 7.973 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.779e-05/0.008879, allocations: 120 kB / 332.6 MB, free: 7.855 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.588e-05/0.008965, allocations: 116 kB / 332.7 MB, free: 7.742 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.009074, allocations: 231.3 kB / 332.9 MB, free: 7.516 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002033/0.009277, allocations: 323.3 kB / 333.3 MB, free: 7.199 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007597/0.01004, allocations: 1.301 MB / 334.6 MB, free: 5.895 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.01004, allocations: 0 / 334.6 MB, free: 5.895 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.01004, allocations: 0 / 334.6 MB, free: 5.895 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.01005, allocations: 0 / 334.6 MB, free: 5.895 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.001582/0.01164, allocations: 1.202 MB / 335.8 MB, free: 4.648 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.01167, allocations: 12.03 kB / 335.8 MB, free: 4.637 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.058e-05/0.01176, allocations: 102.7 kB / 335.9 MB, free: 4.527 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.01187, allocations: 88.42 kB / 336 MB, free: 4.441 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005196/0.01239, allocations: 419.4 kB / 336.4 MB, free: 4.004 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.56e-05/0.01243, allocations: 49.69 kB / 336.4 MB, free: 3.957 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.843e-05/0.0125, allocations: 52.38 kB / 336.5 MB, free: 3.906 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.01387, allocations: 1.27 MB / 337.7 MB, free: 2.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.01388, allocations: 8.125 kB / 337.7 MB, free: 2.492 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.917e-05/0.01393, allocations: 32.11 kB / 337.8 MB, free: 2.461 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.01394, allocations: 16 kB / 337.8 MB, free: 2.445 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/0.01555, allocations: 0.9952 MB / 338.8 MB, free: 1.449 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003027/0.01858, allocations: 2.912 MB / 341.7 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.01986, allocations: 0.7355 MB / 342.4 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006477/0.0205, allocations: 421 kB / 342.8 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.852e-05/0.02054, allocations: 24.41 kB / 342.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006874/0.02123, allocations: 469.9 kB / 343.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 2.434e-06/0.02123, allocations: 0 / 343.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.002006/0.02324, allocations: 1.105 MB / 344.4 MB, free: 11.65 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.02336, allocations: 372.3 kB / 344.8 MB, free: 11.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004891/0.02385, allocations: 0.5887 MB / 345.4 MB, free: 10.6 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.176e-05/0.02389, allocations: 41.7 kB / 345.4 MB, free: 10.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.02407, allocations: 376.5 kB / 345.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.566e-05/0.02416, allocations: 174.5 kB / 346 MB, free: 10.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.02432, allocations: 142.6 kB / 346.1 MB, free: 9.863 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.02443, allocations: 378.8 kB / 346.5 MB, free: 9.484 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006596/0.02509, allocations: 461.1 kB / 346.9 MB, free: 9.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008654/0.02596, allocations: 1.033 MB / 348 MB, free: 7.773 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001264/0.02722, allocations: 0.9676 MB / 348.9 MB, free: 6.707 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.952e-06/0.02723, allocations: 4 kB / 348.9 MB, free: 6.703 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001644/0.02887, allocations: 1.205 MB / 350.1 MB, free: 5.461 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.615e-05/0.02892, allocations: 71.39 kB / 350.2 MB, free: 5.379 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.02893, allocations: 4 kB / 350.2 MB, free: 5.375 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.02895, allocations: 12 kB / 350.2 MB, free: 5.363 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/0.02945, allocations: 215.8 kB / 350.4 MB, free: 5.152 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.02947, allocations: 19.92 kB / 350.5 MB, free: 5.133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007849/0.03025, allocations: 187.2 kB / 350.6 MB, free: 4.949 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.03029, allocations: 28 kB / 350.7 MB, free: 4.922 MB / 314.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.0002256/0.03051, allocations: 221.6 kB / 350.9 MB, free: 4.695 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.589e-05/0.03058, allocations: 75.5 kB / 351 MB, free: 4.621 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.03068, allocations: 74.41 kB / 351 MB, free: 4.547 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.03069, allocations: 7.938 kB / 351 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.924e-06/0.03069, allocations: 8 kB / 351 MB, free: 4.531 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.0307, allocations: 0 / 351 MB, free: 4.531 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001966/0.03267, allocations: 1.522 MB / 352.6 MB, free: 2.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.03267, allocations: 0 / 352.6 MB, free: 2.965 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004063/0.03307, allocations: 143.8 kB / 352.7 MB, free: 2.824 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.03308, allocations: 4 kB / 352.7 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.155e-05/0.03311, allocations: 15.98 kB / 352.7 MB, free: 2.805 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.03311, allocations: 0 / 352.7 MB, free: 2.805 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.03312, allocations: 0 / 352.7 MB, free: 2.805 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/0.03502, allocations: 1.309 MB / 354 MB, free: 1.477 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.03512, allocations: 71.47 kB / 354.1 MB, free: 1.406 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.808e-05/0.03519, allocations: 16.06 kB / 354.1 MB, free: 1.391 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003806/0.03557, allocations: 107.8 kB / 354.2 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.03567, allocations: 48.42 kB / 354.3 MB, free: 1.238 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.0357, allocations: 16 kB / 354.3 MB, free: 1.223 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003999/0.0361, allocations: 402.8 kB / 354.7 MB, free: 0.832 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.0361, allocations: 0 / 354.7 MB, free: 0.832 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005142/0.03661, allocations: 183.8 kB / 354.9 MB, free: 0.6523 MB / 314.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.002165/0.03878, allocations: 1.869 MB / 356.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00184/0.04062, allocations: 1.021 MB / 357.7 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.04062, allocations: 4 kB / 357.8 MB, free: 13.69 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000574/0.0412, allocations: 394.6 kB / 358.1 MB, free: 13.31 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004569/0.04165, allocations: 105.1 kB / 358.2 MB, free: 13.21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007585/0.04924, allocations: 6.668 MB / 364.9 MB, free: 6.227 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/0.04941, allocations: 276.6 kB / 365.2 MB, free: 5.93 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000272/0.04968, allocations: 96.78 kB / 365.3 MB, free: 5.832 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00028/0.04996, allocations: 236.4 kB / 365.5 MB, free: 5.598 MB / 330.7 MB Notification: Performance of SimCode: time 1.402e-06/0.04996, allocations: 0 / 365.5 MB, free: 5.598 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03085/0.08081, allocations: 15.96 MB / 381.5 MB, free: 5.879 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.223/7.304, allocations: 10.81 kB / 381.5 MB, free: 5.871 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.13296470604837]