Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000842/0.000842, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008377/0.0008377, allocations: 149.1 kB / 23.93 MB, free: 0.625 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9165/0.9165, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.93e-06/4.93e-06, allocations: 4 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.722e-05/3.215e-05, allocations: 5.516 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005416/0.005448, allocations: 3.789 MB / 322.2 MB, free: 2.535 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002273/0.007721, allocations: 1.164 MB / 323.4 MB, free: 1.367 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003473/0.008068, allocations: 11.94 kB / 323.4 MB, free: 1.355 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002684/0.008337, allocations: 110.8 kB / 323.5 MB, free: 1.246 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000418/0.008755, allocations: 194.2 kB / 323.7 MB, free: 1.055 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007849/0.00954, allocations: 343.4 kB / 324 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001188/0.01073, allocations: 1.12 MB / 325.2 MB, free: 15.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003423/0.01107, allocations: 183.1 kB / 325.3 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008042/0.01187, allocations: 0.6005 MB / 325.9 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005257/0.0124, allocations: 359 kB / 326.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001761/0.01258, allocations: 116 kB / 326.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000281/0.01286, allocations: 120 kB / 326.5 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000162/0.01302, allocations: 219.4 kB / 326.7 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003806/0.0134, allocations: 319.3 kB / 327 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.01458, allocations: 1.305 MB / 328.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.01459, allocations: 0 / 328.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.01459, allocations: 4 kB / 328.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.858e-05/0.01462, allocations: 3.938 kB / 328.4 MB, free: 12.38 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.002611/0.01723, allocations: 1.19 MB / 329.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.01728, allocations: 8.922 kB / 329.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001319/0.01741, allocations: 102.7 kB / 329.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/0.01758, allocations: 88.42 kB / 329.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.01879, allocations: 431.3 kB / 330.2 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5e-05/0.01884, allocations: 45.69 kB / 330.2 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.01895, allocations: 60.38 kB / 330.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002033/0.02098, allocations: 1.262 MB / 331.5 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.021, allocations: 192 / 331.5 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.916e-05/0.02108, allocations: 36.12 kB / 331.6 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.0211, allocations: 15.94 kB / 331.6 MB, free: 8.945 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00257/0.02367, allocations: 0.9952 MB / 332.6 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003159/0.02682, allocations: 2.901 MB / 335.5 MB, free: 4.918 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.02812, allocations: 0.7415 MB / 336.2 MB, free: 4.172 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000618/0.02873, allocations: 418 kB / 336.6 MB, free: 3.758 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.644e-05/0.02877, allocations: 12.48 kB / 336.6 MB, free: 3.746 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006882/0.02946, allocations: 477.9 kB / 337.1 MB, free: 3.266 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.845e-06/0.02946, allocations: 0 / 337.1 MB, free: 3.266 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.001773/0.03123, allocations: 1.102 MB / 338.2 MB, free: 2.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.03137, allocations: 372.3 kB / 338.6 MB, free: 1.711 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005573/0.03192, allocations: 0.5887 MB / 339.2 MB, free: 1.113 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.904e-05/0.03197, allocations: 37.7 kB / 339.2 MB, free: 1.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/0.03218, allocations: 368.5 kB / 339.6 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.03228, allocations: 182.5 kB / 339.7 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.03244, allocations: 134.6 kB / 339.9 MB, free: 392 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.03256, allocations: 378.8 kB / 340.2 MB, free: 4 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006725/0.03323, allocations: 465.1 kB / 340.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008967/0.03413, allocations: 1.044 MB / 341.7 MB, free: 14.28 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.03545, allocations: 0.9637 MB / 342.7 MB, free: 13.22 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/0.03546, allocations: 4 kB / 342.7 MB, free: 13.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001727/0.03718, allocations: 1.209 MB / 343.9 MB, free: 11.97 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.546e-05/0.03724, allocations: 59.41 kB / 344 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.03725, allocations: 11.98 kB / 344 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.03727, allocations: 12.28 kB / 344 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005272/0.0378, allocations: 219.6 kB / 344.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.884e-05/0.03782, allocations: 19.92 kB / 344.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006792/0.0385, allocations: 183.2 kB / 344.4 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.85e-05/0.03856, allocations: 39.92 kB / 344.4 MB, free: 11.43 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.000373/0.03893, allocations: 221.7 kB / 344.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.03905, allocations: 71.52 kB / 344.7 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001306/0.03918, allocations: 70.34 kB / 344.8 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.03918, allocations: 4 kB / 344.8 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.0392, allocations: 4 kB / 344.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.03921, allocations: 7.984 kB / 344.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002184/0.04139, allocations: 1.514 MB / 346.3 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.0414, allocations: 0 / 346.3 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004044/0.0418, allocations: 151.7 kB / 346.5 MB, free: 9.336 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.04181, allocations: 4 kB / 346.5 MB, free: 9.332 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/0.04184, allocations: 15.98 kB / 346.5 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.04184, allocations: 0 / 346.5 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.04185, allocations: 0 / 346.5 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/0.04372, allocations: 1.305 MB / 347.8 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.04383, allocations: 71.53 kB / 347.9 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.058e-05/0.04389, allocations: 12 kB / 347.9 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003571/0.04424, allocations: 115.8 kB / 348 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.04434, allocations: 48.42 kB / 348 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.388e-05/0.04437, allocations: 15.98 kB / 348.1 MB, free: 7.734 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003857/0.04475, allocations: 398.8 kB / 348.5 MB, free: 7.348 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.04475, allocations: 0 / 348.5 MB, free: 7.348 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004849/0.04524, allocations: 179.8 kB / 348.6 MB, free: 7.172 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.002087/0.04733, allocations: 1.868 MB / 350.5 MB, free: 5.273 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.04884, allocations: 1.028 MB / 351.5 MB, free: 4.215 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.04884, allocations: 0 / 351.5 MB, free: 4.215 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005795/0.04942, allocations: 391.6 kB / 351.9 MB, free: 3.828 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004712/0.04989, allocations: 110.2 kB / 352 MB, free: 3.723 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007372/0.05727, allocations: 6.673 MB / 358.7 MB, free: 12.72 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001671/0.05743, allocations: 280.6 kB / 359 MB, free: 12.42 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002582/0.05769, allocations: 88.84 kB / 359 MB, free: 12.33 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002619/0.05795, allocations: 232.4 kB / 359.3 MB, free: 12.11 MB / 330.7 MB Notification: Performance of SimCode: time 1.142e-06/0.05795, allocations: 0 / 359.3 MB, free: 12.11 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03516/0.09312, allocations: 15.92 MB / 375.2 MB, free: 12.44 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.252/7.345, allocations: 6.047 kB / 375.2 MB, free: 12.44 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.220962975174189]