Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.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.001357/0.001357, allocations: 116.2 kB / 20.43 MB, free: 1.301 MB / 14.72 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.001809/0.001809, allocations: 186.2 kB / 23.72 MB, free: 4.555 MB / 14.72 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 1.4/1.4, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 47.94 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.2384, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008447/0.2468, allocations: 7.534 MB / 430.2 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01329/0.2601, allocations: 10.77 MB / 440.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.2612, allocations: 118.6 kB / 441 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00178/0.263, allocations: 0.713 MB / 441.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003746/0.2668, allocations: 1.202 MB / 443 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001898/0.2687, allocations: 0.6723 MB / 443.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003965/0.2726, allocations: 2.551 MB / 446.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003818/0.273, allocations: 184.3 kB / 446.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007091/0.2737, allocations: 0.5171 MB / 446.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006835/0.2744, allocations: 0.5317 MB / 447.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.861e-05/0.2745, allocations: 56 kB / 447.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001814/0.2763, allocations: 0.7727 MB / 448.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.2765, allocations: 182.8 kB / 448.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006549/0.2771, allocations: 0.6754 MB / 449.1 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00254/0.2797, allocations: 1.956 MB / 451 MB, free: 2.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2797, allocations: 0 / 451 MB, free: 2.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2797, allocations: 0 / 451 MB, free: 2.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.269e-05/0.2797, allocations: 0 / 451 MB, free: 2.043 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.002974/0.2827, allocations: 1.975 MB / 453 MB, free: 28 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.2827, allocations: 12.03 kB / 453 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000127/0.2828, allocations: 90.7 kB / 453.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002302/0.2831, allocations: 207.7 kB / 453.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002001/0.2851, allocations: 1.247 MB / 454.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.623e-05/0.2851, allocations: 29 kB / 454.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.341e-05/0.2852, allocations: 47.98 kB / 454.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000924/0.2861, allocations: 0.5119 MB / 455.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.2862, allocations: 3.938 kB / 455.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.827e-05/0.2862, allocations: 16 kB / 455.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.692e-05/0.2862, allocations: 19.98 kB / 455.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000909/0.2871, allocations: 476.1 kB / 455.7 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00312/0.2903, allocations: 2.046 MB / 457.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009281/0.2912, allocations: 0.5116 MB / 458.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006991/0.2919, allocations: 457.5 kB / 458.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006282/0.2982, allocations: 2.6 MB / 461.3 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005762/0.2987, allocations: 302.1 kB / 461.6 MB, free: 7.289 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.665e-06/0.2987, allocations: 0 / 461.6 MB, free: 7.289 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.003554/0.3023, allocations: 1.904 MB / 463.5 MB, free: 5.348 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.3023, allocations: 67.83 kB / 463.5 MB, free: 5.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/0.3039, allocations: 1.296 MB / 464.8 MB, free: 3.977 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.181e-05/0.3039, allocations: 33.7 kB / 464.9 MB, free: 3.938 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006369/0.3045, allocations: 0.7157 MB / 465.6 MB, free: 3.215 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.3047, allocations: 218.1 kB / 465.8 MB, free: 3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.3049, allocations: 122.3 kB / 465.9 MB, free: 2.875 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.305, allocations: 337.9 kB / 466.2 MB, free: 2.539 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004127/0.3055, allocations: 197.6 kB / 466.4 MB, free: 2.348 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005278/0.306, allocations: 363.8 kB / 466.8 MB, free: 1.926 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009958/0.307, allocations: 0.5998 MB / 467.4 MB, free: 1.254 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.307, allocations: 0 / 467.4 MB, free: 1.254 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001574/0.3086, allocations: 0.9167 MB / 468.3 MB, free: 336 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.3086, allocations: 8 kB / 468.3 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.054e-05/0.3087, allocations: 63.98 kB / 468.4 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004237/0.3091, allocations: 156.7 kB / 468.5 MB, free: 108 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004492/0.3095, allocations: 115.8 kB / 468.6 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002912/0.3125, allocations: 2.405 MB / 471 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000476/0.3129, allocations: 28.02 kB / 471.1 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.169e-05/0.313, allocations: 40 kB / 471.1 MB, free: 13.41 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (57): * Single equations (assignments): 54 * 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,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004453/0.3134, allocations: 273.6 kB / 471.4 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.3136, allocations: 186.9 kB / 471.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001776/0.3154, allocations: 0.8776 MB / 472.4 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.3154, allocations: 8 kB / 472.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3154, allocations: 0 / 472.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.3154, allocations: 11.92 kB / 472.5 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.3165, allocations: 0.8504 MB / 473.3 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.591e-05/0.3165, allocations: 52 kB / 473.4 MB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003016/0.3168, allocations: 63.89 kB / 473.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003669/0.3172, allocations: 147.8 kB / 473.6 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.991e-05/0.3172, allocations: 20 kB / 473.6 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002781/0.32, allocations: 2.387 MB / 476 MB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.32, allocations: 0 / 476 MB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001844/0.3219, allocations: 1.068 MB / 477 MB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003628/0.3222, allocations: 182.9 kB / 477.2 MB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.3224, allocations: 8 kB / 477.2 MB, free: 7.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003398/0.3227, allocations: 19.98 kB / 477.2 MB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.3228, allocations: 48.36 kB / 477.3 MB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.307e-05/0.3229, allocations: 19.98 kB / 477.3 MB, free: 7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001126/0.324, allocations: 0.8616 MB / 478.2 MB, free: 6.148 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.324, allocations: 0 / 478.2 MB, free: 6.148 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009395/0.3249, allocations: 383.2 kB / 478.5 MB, free: 5.773 MB / 382.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 (30): * Single equations (assignments): 24 * 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,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002931/0.3279, allocations: 1.977 MB / 480.5 MB, free: 3.766 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001557/0.3294, allocations: 0.801 MB / 481.3 MB, free: 2.938 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3294, allocations: 0 / 481.3 MB, free: 2.938 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009599/0.3304, allocations: 0.5589 MB / 481.9 MB, free: 2.352 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008147/0.3312, allocations: 206.2 kB / 482.1 MB, free: 2.148 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.3445, allocations: 9.307 MB / 491.4 MB, free: 8.516 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008175/0.3453, allocations: 1.17 MB / 492.6 MB, free: 7.316 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004879/0.3458, allocations: 183.2 kB / 492.7 MB, free: 7.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006415/0.3465, allocations: 0.5735 MB / 493.3 MB, free: 6.559 MB / 398.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3465, allocations: 3.938 kB / 493.3 MB, free: 6.555 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07306/0.4195, allocations: 29.65 MB / 0.5107 GB, free: 9.125 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.46/14.88, allocations: 6.344 kB / 0.5107 GB, free: 9.121 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 17.813216373790056]