Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.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.0009768/0.0009768, allocations: 87.62 kB / 21.43 MB, free: 3.129 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.004909/0.004909, allocations: 164.6 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.8762/0.8762, allocations: 158.6 MB / 186.5 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] 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.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 3.938 kB / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.772e-05/1.907e-05, allocations: 2.281 kB / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1392/0.1392, allocations: 11.27 MB / 309.7 MB, free: 8.848 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02121/0.1604, allocations: 16.69 MB / 326.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002494/0.1629, allocations: 191.9 kB / 326.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002493/0.1654, allocations: 1.008 MB / 327.6 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007275/0.1727, allocations: 2.358 MB / 329.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004744/0.1774, allocations: 1.371 MB / 331.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008937/0.1863, allocations: 6.422 MB / 337.7 MB, free: 7.195 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006787/0.187, allocations: 249 kB / 338 MB, free: 6.922 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001965/0.189, allocations: 1.368 MB / 339.4 MB, free: 5.551 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008006/0.1898, allocations: 0.7358 MB / 340.1 MB, free: 4.812 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.1899, allocations: 68 kB / 340.2 MB, free: 4.746 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002709/0.1926, allocations: 1.081 MB / 341.2 MB, free: 3.664 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001752/0.1928, allocations: 321.7 kB / 341.6 MB, free: 3.348 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006193/0.1934, allocations: 0.7009 MB / 342.3 MB, free: 2.641 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003379/0.1968, allocations: 3.647 MB / 345.9 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1968, allocations: 4 kB / 345.9 MB, free: 14.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1968, allocations: 0 / 345.9 MB, free: 14.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.221e-05/0.1969, allocations: 0 / 345.9 MB, free: 14.97 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.003402/0.2003, allocations: 3.539 MB / 349.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.2003, allocations: 15.97 kB / 349.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.819e-05/0.2004, allocations: 94.52 kB / 349.5 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002999/0.2007, allocations: 389.6 kB / 349.9 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002433/0.2032, allocations: 2.372 MB / 352.3 MB, free: 8.414 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.532e-05/0.2032, allocations: 37 kB / 352.3 MB, free: 8.375 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.561e-05/0.2033, allocations: 55.89 kB / 352.4 MB, free: 8.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008524/0.2041, allocations: 0.7031 MB / 353.1 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.2041, allocations: 0 / 353.1 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.397e-05/0.2042, allocations: 20 kB / 353.1 MB, free: 7.594 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.2042, allocations: 19.98 kB / 353.1 MB, free: 7.574 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009205/0.2051, allocations: 0.7928 MB / 353.9 MB, free: 6.785 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003151/0.2083, allocations: 2.696 MB / 356.6 MB, free: 4.027 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007583/0.209, allocations: 0.5636 MB / 357.2 MB, free: 3.457 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006146/0.2096, allocations: 0.5733 MB / 357.8 MB, free: 2.879 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0167/0.2263, allocations: 13.71 MB / 371.5 MB, free: 4.789 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005279/0.2269, allocations: 371.6 kB / 371.8 MB, free: 4.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 2.394e-06/0.2269, allocations: 0 / 371.8 MB, free: 4.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.002073/0.2289, allocations: 1.327 MB / 373.2 MB, free: 3.074 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.229, allocations: 59.41 kB / 373.2 MB, free: 3.004 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002573/0.2316, allocations: 2.836 MB / 376.1 MB, free: 152 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.2316, allocations: 37.7 kB / 376.1 MB, free: 108 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008533/0.2325, allocations: 1.4 MB / 377.5 MB, free: 14.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.2326, allocations: 174.6 kB / 377.7 MB, free: 14.53 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.2328, allocations: 222.3 kB / 377.9 MB, free: 14.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.327e-05/0.2328, allocations: 345.9 kB / 378.2 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003401/0.2332, allocations: 234.5 kB / 378.4 MB, free: 13.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004712/0.2337, allocations: 0.6005 MB / 379.1 MB, free: 12.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008844/0.2345, allocations: 0.8773 MB / 379.9 MB, free: 11.91 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.2345, allocations: 4 kB / 379.9 MB, free: 11.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001453/0.236, allocations: 1.283 MB / 381.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.236, allocations: 15.97 kB / 381.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.617e-05/0.2361, allocations: 83.56 kB / 381.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003751/0.2365, allocations: 280.7 kB / 381.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003213/0.2368, allocations: 163.7 kB / 381.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006796/0.2375, allocations: 0.8996 MB / 382.6 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006156/0.2381, allocations: 111.3 kB / 382.8 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.509e-05/0.2382, allocations: 64 kB / 382.8 MB, free: 8.992 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0005042/0.2387, allocations: 425.6 kB / 383.2 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00023/0.2389, allocations: 389.5 kB / 383.6 MB, free: 8.184 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001718/0.2406, allocations: 1.265 MB / 384.9 MB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.2406, allocations: 4 kB / 384.9 MB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2406, allocations: 0 / 384.9 MB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2406, allocations: 0 / 384.9 MB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00228/0.2429, allocations: 2.116 MB / 387 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.668e-05/0.243, allocations: 75.98 kB / 387.1 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000163/0.2431, allocations: 59.89 kB / 387.1 MB, free: 4.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002948/0.2434, allocations: 264.8 kB / 387.4 MB, free: 4.312 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.956e-05/0.2435, allocations: 39.98 kB / 387.4 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005796/0.244, allocations: 0.8607 MB / 388.3 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.244, allocations: 0 / 388.3 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.2451, allocations: 1.14 MB / 389.4 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004617/0.2456, allocations: 403.3 kB / 389.8 MB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/0.2458, allocations: 19.98 kB / 389.8 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003578/0.2461, allocations: 31.91 kB / 389.9 MB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.2462, allocations: 63.92 kB / 389.9 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-05/0.2463, allocations: 36 kB / 390 MB, free: 1.664 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00163/0.2479, allocations: 1.836 MB / 391.8 MB, free: 15.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2479, allocations: 0 / 391.8 MB, free: 15.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009077/0.2488, allocations: 0.5774 MB / 392.4 MB, free: 15.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00207/0.2509, allocations: 2.419 MB / 394.8 MB, free: 12.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.252, allocations: 0.8175 MB / 395.6 MB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.252, allocations: 1.062 kB / 395.6 MB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005095/0.2525, allocations: 480.2 kB / 396.1 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.2536, allocations: 0.5034 MB / 396.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01707/0.2707, allocations: 16.1 MB / 412.7 MB, free: 10.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006389/0.2713, allocations: 1.053 MB / 413.7 MB, free: 9.207 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007095/0.272, allocations: 395 kB / 414.1 MB, free: 8.816 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007841/0.2728, allocations: 1.129 MB / 415.3 MB, free: 7.684 MB / 378.7 MB Notification: Performance of SimCode: time 1.142e-06/0.2728, allocations: 0 / 415.3 MB, free: 7.684 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2078/0.4805, allocations: 63.75 MB / 479 MB, free: 142.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.644/10.12, allocations: 5.375 kB / 479 MB, free: 142.2 MB / 426.7 MB " [Timeout remaining time 650] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.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: 12.330980222672224]