Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.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.001673/0.001673, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001524/0.001524, allocations: 213.3 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.427/1.427, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 47.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2526, allocations: 53.36 MB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008517/0.2611, allocations: 7.555 MB / 438.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01337/0.2745, allocations: 10.79 MB / 449.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001126/0.2756, allocations: 122.6 kB / 449.6 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001904/0.2775, allocations: 0.712 MB / 450.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003745/0.2812, allocations: 1.207 MB / 451.5 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00178/0.283, allocations: 0.68 MB / 452.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004066/0.2871, allocations: 2.574 MB / 454.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003761/0.2875, allocations: 180.4 kB / 454.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006816/0.2881, allocations: 0.5132 MB / 455.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006706/0.2888, allocations: 0.5317 MB / 456 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.586e-05/0.2889, allocations: 56 kB / 456 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001721/0.2906, allocations: 0.7766 MB / 456.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001722/0.2908, allocations: 190.8 kB / 457 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006287/0.2914, allocations: 0.6676 MB / 457.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002464/0.2939, allocations: 1.964 MB / 459.6 MB, free: 10.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2939, allocations: 4 kB / 459.6 MB, free: 10.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2939, allocations: 0 / 459.6 MB, free: 10.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.22e-05/0.2939, allocations: 0 / 459.6 MB, free: 10.19 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003153/0.2971, allocations: 1.963 MB / 461.6 MB, free: 8.184 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/0.2971, allocations: 15.97 kB / 461.6 MB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/0.2972, allocations: 86.7 kB / 461.7 MB, free: 8.074 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002456/0.2975, allocations: 207.7 kB / 461.9 MB, free: 7.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002106/0.2996, allocations: 1.251 MB / 463.2 MB, free: 6.562 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.424e-05/0.2996, allocations: 29 kB / 463.2 MB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.792e-05/0.2997, allocations: 44 kB / 463.2 MB, free: 6.488 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009215/0.3006, allocations: 0.5119 MB / 463.7 MB, free: 5.973 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.3007, allocations: 7.875 kB / 463.8 MB, free: 5.965 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.731e-05/0.3007, allocations: 20 kB / 463.8 MB, free: 5.945 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.3007, allocations: 12 kB / 463.8 MB, free: 5.934 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009299/0.3016, allocations: 480.1 kB / 464.3 MB, free: 5.469 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003353/0.305, allocations: 2.05 MB / 466.3 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009415/0.3059, allocations: 0.5105 MB / 466.8 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007449/0.3067, allocations: 466.1 kB / 467.3 MB, free: 2.363 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005269/0.312, allocations: 2.338 MB / 469.6 MB, free: 0 / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000616/0.3126, allocations: 313.6 kB / 469.9 MB, free: 15.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=61): time 2.315e-06/0.3126, allocations: 4 kB / 469.9 MB, free: 15.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=65): time 0.004931/0.3175, allocations: 2.27 MB / 472.2 MB, free: 13.37 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.3176, allocations: 59.84 kB / 472.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001631/0.3192, allocations: 1.288 MB / 473.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.047e-05/0.3192, allocations: 41.69 kB / 473.6 MB, free: 11.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006477/0.3199, allocations: 0.7041 MB / 474.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.3201, allocations: 230 kB / 474.5 MB, free: 11.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/0.3203, allocations: 122.3 kB / 474.6 MB, free: 10.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3204, allocations: 334 kB / 474.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004482/0.3209, allocations: 213.5 kB / 475.2 MB, free: 10.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005625/0.3214, allocations: 368.4 kB / 475.5 MB, free: 9.945 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.3225, allocations: 0.6125 MB / 476.1 MB, free: 9.281 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-06/0.3225, allocations: 7.938 kB / 476.1 MB, free: 9.273 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001747/0.3243, allocations: 0.9639 MB / 477.1 MB, free: 8.297 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3243, allocations: 8.5 kB / 477.1 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.841e-05/0.3244, allocations: 64 kB / 477.2 MB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005053/0.3249, allocations: 184.7 kB / 477.4 MB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004431/0.3253, allocations: 103.8 kB / 477.5 MB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003462/0.3288, allocations: 2.668 MB / 480.1 MB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004629/0.3292, allocations: 24.03 kB / 480.1 MB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.906e-05/0.3293, allocations: 39.98 kB / 480.2 MB, free: 5.105 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 (v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 1 system {(4,17,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004389/0.3298, allocations: 273.7 kB / 480.4 MB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/0.33, allocations: 190.8 kB / 480.6 MB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002009/0.332, allocations: 0.9657 MB / 481.6 MB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.332, allocations: 4 kB / 481.6 MB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.332, allocations: 4 kB / 481.6 MB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.332, allocations: 3.984 kB / 481.6 MB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.3331, allocations: 0.8699 MB / 482.5 MB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.182e-05/0.3332, allocations: 71.98 kB / 482.6 MB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003239/0.3335, allocations: 59.89 kB / 482.6 MB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004537/0.334, allocations: 179.5 kB / 482.8 MB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.321e-05/0.334, allocations: 23.92 kB / 482.8 MB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003281/0.3373, allocations: 2.637 MB / 485.4 MB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3373, allocations: 0 / 485.4 MB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002176/0.3395, allocations: 1.192 MB / 486.6 MB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003782/0.3398, allocations: 182.8 kB / 486.8 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.34, allocations: 15.94 kB / 486.8 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.3403, allocations: 23.97 kB / 486.9 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.3405, allocations: 56.3 kB / 486.9 MB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.803e-05/0.3405, allocations: 23.98 kB / 486.9 MB, free: 14.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001135/0.3416, allocations: 0.8535 MB / 487.8 MB, free: 13.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3416, allocations: 0 / 487.8 MB, free: 13.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009437/0.3426, allocations: 391.2 kB / 488.2 MB, free: 12.92 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vbx,T2.vbe,T2.vbx) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * 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): 1 system {(4,17,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003099/0.3457, allocations: 2.085 MB / 490.3 MB, free: 10.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.3474, allocations: 0.8824 MB / 491.1 MB, free: 9.895 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3474, allocations: 0 / 491.1 MB, free: 9.895 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.3485, allocations: 0.6159 MB / 491.8 MB, free: 9.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008536/0.3494, allocations: 209.2 kB / 492 MB, free: 9.047 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01399/0.3634, allocations: 9.45 MB / 0.4897 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008318/0.3642, allocations: 1.174 MB / 0.4908 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004948/0.3647, allocations: 179.2 kB / 0.491 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006412/0.3653, allocations: 0.5696 MB / 0.4915 GB, free: 13.34 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3653, allocations: 0 / 0.4915 GB, free: 13.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08101/0.4463, allocations: 30.43 MB / 0.5213 GB, free: 15.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.11/15.56, allocations: 4 kB / 0.5213 GB, free: 15.14 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4.998e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.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: 18.2413111570022]