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.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.001899/0.001899, allocations: 107.6 kB / 21.18 MB, free: 0.6094 MB / 14.72 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.002397/0.002397, allocations: 215 kB / 24.48 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 207.7 MB / 235.3 MB, free: 9.82 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 58.58 kB / 347.2 MB, free: 9.848 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2464, allocations: 49.14 MB / 396.4 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00427/0.2507, allocations: 3.637 MB / 400 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.2528, allocations: 1.102 MB / 401.1 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002569/0.253, allocations: 8.625 kB / 401.1 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002448/0.2533, allocations: 98.95 kB / 401.2 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003242/0.2536, allocations: 176.7 kB / 401.4 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005254/0.2541, allocations: 289.6 kB / 401.7 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007764/0.2549, allocations: 0.9632 MB / 402.7 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003005/0.2552, allocations: 183.4 kB / 402.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003881/0.2556, allocations: 382.5 kB / 403.2 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004228/0.256, allocations: 379.8 kB / 403.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001561/0.2561, allocations: 113.1 kB / 403.7 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001628/0.2563, allocations: 114.4 kB / 403.8 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.2565, allocations: 214.6 kB / 404 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000294/0.2568, allocations: 351.6 kB / 404.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001176/0.2579, allocations: 1.146 MB / 405.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.2579, allocations: 0.7969 kB / 405.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.2579, allocations: 0 / 405.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.258, allocations: 0 / 405.5 MB, free: 3.465 MB / 318.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.002634/0.2606, allocations: 1.133 MB / 406.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.2606, allocations: 14.23 kB / 406.6 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001088/0.2607, allocations: 97.33 kB / 406.7 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.2609, allocations: 78.25 kB / 406.8 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005619/0.2614, allocations: 385 kB / 407.2 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.459e-05/0.2615, allocations: 42.38 kB / 407.2 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.2616, allocations: 63.97 kB / 407.3 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001992/0.2636, allocations: 1.124 MB / 408.4 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.2636, allocations: 4 kB / 408.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.345e-05/0.2636, allocations: 27.61 kB / 408.5 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.2637, allocations: 13.75 kB / 408.5 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002595/0.2663, allocations: 0.9768 MB / 409.4 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004344/0.2706, allocations: 2.788 MB / 412.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002257/0.2729, allocations: 0.7295 MB / 413 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00114/0.274, allocations: 422.5 kB / 413.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.46e-05/0.274, allocations: 15.14 kB / 413.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001178/0.2752, allocations: 460.8 kB / 413.8 MB, free: 14.01 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.126e-06/0.2752, allocations: 0 / 413.8 MB, free: 14.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003253/0.2785, allocations: 1.089 MB / 414.9 MB, free: 13.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001771/0.2787, allocations: 273.8 kB / 415.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008106/0.2795, allocations: 0.5177 MB / 415.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.093e-05/0.2795, allocations: 42.44 kB / 415.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002833/0.2798, allocations: 343.8 kB / 416.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.28, allocations: 172.3 kB / 416.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/0.2803, allocations: 139.1 kB / 416.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002869/0.2806, allocations: 366.8 kB / 416.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.2818, allocations: 460.9 kB / 417.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001625/0.2834, allocations: 0.9037 MB / 418.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002446/0.2859, allocations: 0.9684 MB / 419.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.2859, allocations: 2.75 kB / 419.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00297/0.2888, allocations: 1.185 MB / 420.3 MB, free: 9.449 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.831e-05/0.2889, allocations: 65.25 kB / 420.3 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.2889, allocations: 9.891 kB / 420.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/0.2889, allocations: 18 kB / 420.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.2899, allocations: 218.9 kB / 420.6 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.192e-05/0.29, allocations: 18.11 kB / 420.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.291, allocations: 180.4 kB / 420.8 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.95e-05/0.2911, allocations: 32.2 kB / 420.8 MB, free: 9.195 MB / 334.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.0003294/0.2914, allocations: 217.8 kB / 421 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.2915, allocations: 59.62 kB / 421.1 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001579/0.2917, allocations: 63.64 kB / 421.1 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.2917, allocations: 9.5 kB / 421.1 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.2917, allocations: 0 / 421.1 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2917, allocations: 0 / 421.1 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003346/0.2951, allocations: 1.486 MB / 422.6 MB, free: 7.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.2951, allocations: 9.391 kB / 422.6 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007634/0.2958, allocations: 156 kB / 422.8 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.2959, allocations: 2.469 kB / 422.8 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.289e-05/0.2959, allocations: 7.531 kB / 422.8 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.2959, allocations: 1.25 kB / 422.8 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2959, allocations: 1.188 kB / 422.8 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003439/0.2993, allocations: 1.297 MB / 424.1 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.2995, allocations: 67.52 kB / 424.2 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.675e-05/0.2996, allocations: 12 kB / 424.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007751/0.3003, allocations: 107.9 kB / 424.3 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/0.3005, allocations: 48.36 kB / 424.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.439e-05/0.3005, allocations: 19.98 kB / 424.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000543/0.3011, allocations: 346.9 kB / 424.7 MB, free: 5.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3011, allocations: 3.938 kB / 424.7 MB, free: 5.988 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007521/0.3018, allocations: 179.8 kB / 424.9 MB, free: 5.812 MB / 334.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.003773/0.3056, allocations: 1.851 MB / 426.7 MB, free: 3.934 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002639/0.3082, allocations: 1.023 MB / 427.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.3082, allocations: 4 kB / 427.7 MB, free: 2.871 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.3094, allocations: 391.1 kB / 428.1 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006104/0.31, allocations: 102.7 kB / 428.2 MB, free: 2.387 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01247/0.3225, allocations: 6.399 MB / 434.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.3227, allocations: 263.3 kB / 434.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004377/0.3232, allocations: 84.59 kB / 435 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004091/0.3236, allocations: 211.4 kB / 435.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of SimCode: time 1.673e-06/0.3236, allocations: 0 / 435.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05709/0.3807, allocations: 14.61 MB / 449.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12, allocations: 12 kB / 449.8 MB, free: 12.38 MB / 366.1 MB " [Timeout remaining time 648] (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 1.97668e-11 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.599744072183967]