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.001252/0.001252, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.00131/0.00131, allocations: 212.5 kB / 24.51 MB, free: 3.914 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.364/1.364, allocations: 230.6 MB / 258.3 MB, free: 7.762 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 43.92 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2384, allocations: 53.36 MB / 431.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007395/0.2458, allocations: 6.479 MB / 438.3 MB, free: 136 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.2585, allocations: 9.32 MB / 447.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001308/0.2598, allocations: 126.6 kB / 447.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001941/0.2617, allocations: 0.6407 MB / 448.4 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003926/0.2656, allocations: 1.206 MB / 449.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002035/0.2677, allocations: 0.6759 MB / 450.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004228/0.2719, allocations: 2.578 MB / 452.9 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005083/0.2724, allocations: 180.3 kB / 453 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008958/0.2733, allocations: 0.5132 MB / 453.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007902/0.2741, allocations: 0.5396 MB / 454.1 MB, free: 276 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.2742, allocations: 56 kB / 454.2 MB, free: 220 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001659/0.2759, allocations: 0.722 MB / 454.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.276, allocations: 186.8 kB / 455.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005316/0.2766, allocations: 0.5045 MB / 455.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002228/0.2788, allocations: 1.976 MB / 457.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.2788, allocations: 7.984 kB / 457.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2788, allocations: 0 / 457.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.2788, allocations: 0 / 457.5 MB, free: 12.81 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.002712/0.2815, allocations: 1.971 MB / 459.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.2816, allocations: 12.03 kB / 459.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.729e-05/0.2816, allocations: 17.19 kB / 459.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.955e-05/0.2817, allocations: 86.7 kB / 459.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002221/0.2819, allocations: 207.7 kB / 459.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001823/0.2837, allocations: 1.243 MB / 461.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.2e-05/0.2838, allocations: 33 kB / 461.1 MB, free: 9.137 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.887e-05/0.2839, allocations: 43.95 kB / 461.2 MB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009314/0.2848, allocations: 0.5197 MB / 461.7 MB, free: 8.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.2848, allocations: 0 / 461.7 MB, free: 8.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.777e-05/0.2849, allocations: 16 kB / 461.7 MB, free: 8.555 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.901e-05/0.2849, allocations: 16 kB / 461.7 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009261/0.2858, allocations: 480 kB / 462.2 MB, free: 8.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002876/0.2887, allocations: 1.945 MB / 464.1 MB, free: 6.051 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009091/0.2896, allocations: 0.4928 MB / 464.6 MB, free: 5.547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007112/0.2903, allocations: 482 kB / 465.1 MB, free: 5.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004588/0.2949, allocations: 2.276 MB / 467.4 MB, free: 2.777 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006009/0.2955, allocations: 313.5 kB / 467.7 MB, free: 2.457 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 2.345e-06/0.2955, allocations: 4 kB / 467.7 MB, free: 2.453 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004781/0.3003, allocations: 2.266 MB / 469.9 MB, free: 152 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.3003, allocations: 59.84 kB / 470 MB, free: 80 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001474/0.3018, allocations: 1.288 MB / 471.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.516e-05/0.3018, allocations: 33.7 kB / 471.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006157/0.3025, allocations: 0.7041 MB / 472 MB, free: 14.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.3026, allocations: 229.9 kB / 472.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.3028, allocations: 126.3 kB / 472.4 MB, free: 13.69 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.303, allocations: 333.9 kB / 472.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004427/0.3034, allocations: 213.6 kB / 472.9 MB, free: 13.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005422/0.304, allocations: 360.4 kB / 473.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.305, allocations: 0.6281 MB / 473.9 MB, free: 12.06 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.305, allocations: 0 / 473.9 MB, free: 12.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001704/0.3067, allocations: 0.96 MB / 474.8 MB, free: 11.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.3067, allocations: 8 kB / 474.8 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.603e-05/0.3068, allocations: 64 kB / 474.9 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000495/0.3073, allocations: 185.1 kB / 475.1 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004371/0.3078, allocations: 111.8 kB / 475.2 MB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003306/0.3111, allocations: 2.629 MB / 477.8 MB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004605/0.3115, allocations: 24.03 kB / 477.9 MB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.412e-05/0.3116, allocations: 39.94 kB / 477.9 MB, free: 7.918 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.0004375/0.312, allocations: 282.9 kB / 478.2 MB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/0.3122, allocations: 190.8 kB / 478.4 MB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001894/0.3141, allocations: 0.9658 MB / 479.3 MB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.3141, allocations: 4 kB / 479.3 MB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.3141, allocations: 4 kB / 479.3 MB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3142, allocations: 0 / 479.3 MB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009779/0.3151, allocations: 0.8115 MB / 480.1 MB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-05/0.3152, allocations: 56 kB / 480.2 MB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003048/0.3155, allocations: 71.89 kB / 480.3 MB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004471/0.316, allocations: 178.9 kB / 480.4 MB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.483e-05/0.316, allocations: 23.98 kB / 480.5 MB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003139/0.3192, allocations: 2.623 MB / 483.1 MB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3192, allocations: 0 / 483.1 MB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00205/0.3212, allocations: 1.181 MB / 484.3 MB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003172/0.3215, allocations: 190.8 kB / 484.5 MB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.3217, allocations: 12 kB / 484.5 MB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003442/0.322, allocations: 15.98 kB / 484.5 MB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.3221, allocations: 52.34 kB / 484.5 MB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.358e-05/0.3222, allocations: 27.98 kB / 484.6 MB, free: 1.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001036/0.3232, allocations: 0.8651 MB / 485.4 MB, free: 192 kB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3232, allocations: 0 / 485.4 MB, free: 192 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008966/0.3241, allocations: 387.3 kB / 485.8 MB, free: 15.8 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.002979/0.3271, allocations: 2.089 MB / 487.9 MB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00167/0.3288, allocations: 0.8748 MB / 488.8 MB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3288, allocations: 0 / 488.8 MB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.3298, allocations: 0.612 MB / 489.4 MB, free: 12.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008543/0.3306, allocations: 210.1 kB / 489.6 MB, free: 11.94 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/0.3441, allocations: 9.442 MB / 499 MB, free: 2.191 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006092/0.3447, allocations: 0.5838 MB / 499.6 MB, free: 1.57 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004722/0.3452, allocations: 187.2 kB / 499.8 MB, free: 1.383 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006373/0.3458, allocations: 0.5734 MB / 0.4886 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3458, allocations: 0 / 0.4886 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06777/0.4136, allocations: 31.07 MB / 0.519 GB, free: 2.035 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.59/15, allocations: 14.95 kB / 0.519 GB, free: 2.023 MB / 430.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-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.mat","/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 18.294616720057093]