Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001478/0.001478, allocations: 114 kB / 20.44 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001663/0.001663, allocations: 211.4 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 230.5 MB / 257.4 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 59.89 kB / 377.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.271, allocations: 53.41 MB / 431.2 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005632/0.2766, allocations: 4.284 MB / 435.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002492/0.2791, allocations: 1.222 MB / 436.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003469/0.2794, allocations: 15.94 kB / 436.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.2797, allocations: 110.8 kB / 436.8 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003653/0.2801, allocations: 182.3 kB / 437 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007153/0.2808, allocations: 335.5 kB / 437.3 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.2819, allocations: 1.089 MB / 438.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003408/0.2822, allocations: 199.1 kB / 438.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004246/0.2826, allocations: 418.8 kB / 439 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005169/0.2831, allocations: 458.2 kB / 439.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001404/0.2833, allocations: 120 kB / 439.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.2834, allocations: 124 kB / 439.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001926/0.2836, allocations: 231.3 kB / 439.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004035/0.284, allocations: 446.1 kB / 440.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001217/0.2852, allocations: 1.23 MB / 441.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2852, allocations: 3.938 kB / 441.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2852, allocations: 0 / 441.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.2853, allocations: 0 / 441.6 MB, free: 12.27 MB / 350.1 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.002863/0.2881, allocations: 1.202 MB / 442.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.2882, allocations: 8.031 kB / 442.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001283/0.2883, allocations: 102.7 kB / 442.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.2884, allocations: 88.42 kB / 443 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007074/0.2891, allocations: 424.2 kB / 443.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.229e-05/0.2892, allocations: 41.69 kB / 443.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.2893, allocations: 64.38 kB / 443.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002126/0.2914, allocations: 0.9604 MB / 444.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.2915, allocations: 7.938 kB / 444.5 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.976e-05/0.2915, allocations: 24 kB / 444.5 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.2915, allocations: 20 kB / 444.5 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00281/0.2943, allocations: 0.999 MB / 445.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004953/0.2993, allocations: 3.152 MB / 448.7 MB, free: 4.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002189/0.3015, allocations: 0.7424 MB / 449.4 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/0.3026, allocations: 417.8 kB / 449.8 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.733e-05/0.3027, allocations: 24.5 kB / 449.9 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/0.3039, allocations: 469.1 kB / 450.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.946e-06/0.3039, allocations: 3.938 kB / 450.3 MB, free: 3.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003161/0.307, allocations: 1.088 MB / 451.4 MB, free: 2.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003346/0.3074, allocations: 384.2 kB / 451.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008946/0.3083, allocations: 0.581 MB / 452.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.005e-05/0.3083, allocations: 37.7 kB / 452.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003139/0.3086, allocations: 380.4 kB / 452.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000164/0.3088, allocations: 178.5 kB / 452.9 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002464/0.3091, allocations: 134.6 kB / 453.1 MB, free: 392 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.3092, allocations: 378.8 kB / 453.4 MB, free: 4 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.3104, allocations: 401.7 kB / 453.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/0.3117, allocations: 0.6733 MB / 454.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002227/0.314, allocations: 0.979 MB / 455.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.314, allocations: 0 / 455.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00282/0.3168, allocations: 1.14 MB / 456.6 MB, free: 12.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.277e-05/0.3169, allocations: 63.67 kB / 456.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.3169, allocations: 12 kB / 456.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.587e-05/0.3169, allocations: 8 kB / 456.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.3179, allocations: 219.6 kB / 456.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.45e-05/0.3179, allocations: 15.92 kB / 456.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.319, allocations: 195.2 kB / 457.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.231e-05/0.3191, allocations: 36 kB / 457.2 MB, free: 12.03 MB / 366.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.0003602/0.3194, allocations: 221.5 kB / 457.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.3195, allocations: 75.56 kB / 457.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001586/0.3197, allocations: 70.41 kB / 457.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.3197, allocations: 4 kB / 457.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.118e-06/0.3197, allocations: 4 kB / 457.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3197, allocations: 0 / 457.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003337/0.3231, allocations: 1.645 MB / 459.2 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3231, allocations: 0 / 459.2 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007797/0.3238, allocations: 147.7 kB / 459.3 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.596e-06/0.3238, allocations: 4 kB / 459.3 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.546e-05/0.3239, allocations: 19.98 kB / 459.3 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.3239, allocations: 0 / 459.3 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.3239, allocations: 7.938 kB / 459.3 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003234/0.3271, allocations: 1.3 MB / 460.6 MB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.3273, allocations: 71.53 kB / 460.7 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.3274, allocations: 15.98 kB / 460.7 MB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007508/0.3282, allocations: 103.9 kB / 460.8 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.3283, allocations: 56.28 kB / 460.9 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.312e-05/0.3283, allocations: 19.98 kB / 460.9 MB, free: 8.199 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005799/0.3289, allocations: 402.8 kB / 461.3 MB, free: 7.809 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3289, allocations: 0 / 461.3 MB, free: 7.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006054/0.3295, allocations: 175.8 kB / 461.5 MB, free: 7.637 MB / 366.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.003504/0.333, allocations: 1.865 MB / 463.3 MB, free: 5.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002447/0.3355, allocations: 0.9689 MB / 464.3 MB, free: 4.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3355, allocations: 0 / 464.3 MB, free: 4.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.3365, allocations: 399.3 kB / 464.7 MB, free: 4.359 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005915/0.3371, allocations: 102.2 kB / 464.8 MB, free: 4.262 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01204/0.3492, allocations: 6.465 MB / 471.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005137/0.3497, allocations: 0.8863 MB / 472.2 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003926/0.3501, allocations: 80.86 kB / 472.2 MB, free: 12.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004024/0.3505, allocations: 231.4 kB / 472.5 MB, free: 12.3 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3505, allocations: 0 / 472.5 MB, free: 12.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04568/0.3961, allocations: 15.08 MB / 487.5 MB, free: 13.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.11, allocations: 7.5 kB / 487.5 MB, free: 13.39 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 14.640734939002868]