Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001364/0.001364, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 207.4 kB / 23.73 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 230.5 MB / 257.4 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 59.91 kB / 377.7 MB, free: 2.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2317, allocations: 53.41 MB / 431.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008269/0.24, allocations: 6.483 MB / 437.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01317/0.2531, allocations: 9.32 MB / 446.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001213/0.2543, allocations: 122.6 kB / 447.1 MB, free: 6.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00201/0.2563, allocations: 0.648 MB / 447.7 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004221/0.2606, allocations: 1.206 MB / 448.9 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001935/0.2625, allocations: 0.6759 MB / 449.6 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004151/0.2667, allocations: 2.571 MB / 452.2 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004036/0.2671, allocations: 172.3 kB / 452.3 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000725/0.2678, allocations: 0.521 MB / 452.8 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005818/0.2684, allocations: 0.4966 MB / 453.3 MB, free: 136 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.2685, allocations: 56 kB / 453.4 MB, free: 80 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001781/0.2702, allocations: 0.6908 MB / 454.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.2704, allocations: 182.8 kB / 454.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005026/0.2709, allocations: 0.5084 MB / 454.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002333/0.2732, allocations: 1.976 MB / 456.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2733, allocations: 0 / 456.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2733, allocations: 0 / 456.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.913e-05/0.2733, allocations: 0 / 456.7 MB, free: 12.71 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.003002/0.2763, allocations: 1.971 MB / 458.7 MB, free: 10.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.2763, allocations: 11.98 kB / 458.7 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001085/0.2764, allocations: 94.64 kB / 458.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002437/0.2767, allocations: 207.7 kB / 459 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002055/0.2787, allocations: 1.247 MB / 460.3 MB, free: 9.078 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.2788, allocations: 32.98 kB / 460.3 MB, free: 9.043 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.2e-05/0.2789, allocations: 51.95 kB / 460.4 MB, free: 8.992 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009177/0.2798, allocations: 0.5197 MB / 460.9 MB, free: 8.469 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.2798, allocations: 0 / 460.9 MB, free: 8.469 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.708e-05/0.2798, allocations: 19.98 kB / 460.9 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.2799, allocations: 12 kB / 460.9 MB, free: 8.438 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009413/0.2808, allocations: 472.1 kB / 461.4 MB, free: 7.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003147/0.2839, allocations: 1.945 MB / 463.3 MB, free: 5.957 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009239/0.2849, allocations: 0.4982 MB / 463.8 MB, free: 5.449 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007509/0.2856, allocations: 477.2 kB / 464.3 MB, free: 4.984 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005103/0.2907, allocations: 2.276 MB / 466.6 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006228/0.2913, allocations: 317.5 kB / 466.9 MB, free: 2.359 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 2.484e-06/0.2913, allocations: 4 kB / 466.9 MB, free: 2.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005032/0.2964, allocations: 2.27 MB / 469.1 MB, free: 48 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.2964, allocations: 59.84 kB / 469.2 MB, free: 15.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001609/0.2981, allocations: 1.299 MB / 470.5 MB, free: 14.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.744e-05/0.2981, allocations: 29.7 kB / 470.5 MB, free: 14.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006442/0.2987, allocations: 0.7002 MB / 471.2 MB, free: 13.94 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001923/0.2989, allocations: 238 kB / 471.5 MB, free: 13.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/0.2991, allocations: 122.3 kB / 471.6 MB, free: 13.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.2993, allocations: 337.9 kB / 471.9 MB, free: 13.24 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004538/0.2997, allocations: 209.6 kB / 472.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005646/0.3003, allocations: 360.5 kB / 472.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.3014, allocations: 0.6164 MB / 473.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.371e-06/0.3014, allocations: 3.938 kB / 473.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001772/0.3031, allocations: 0.9716 MB / 474.1 MB, free: 10.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.3032, allocations: 4 kB / 474.1 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.912e-05/0.3033, allocations: 60.5 kB / 474.1 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004975/0.3038, allocations: 184.7 kB / 474.3 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.3042, allocations: 111.8 kB / 474.4 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003457/0.3077, allocations: 2.63 MB / 477 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005474/0.3082, allocations: 24.03 kB / 477.1 MB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-05/0.3083, allocations: 36 kB / 477.1 MB, free: 7.82 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.0004703/0.3088, allocations: 269.8 kB / 477.4 MB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002127/0.309, allocations: 186.9 kB / 477.5 MB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001987/0.311, allocations: 0.9735 MB / 478.5 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.311, allocations: 4 kB / 478.5 MB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.311, allocations: 4 kB / 478.5 MB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.311, allocations: 3.938 kB / 478.5 MB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.312, allocations: 0.8115 MB / 479.3 MB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.14e-05/0.3121, allocations: 56 kB / 479.4 MB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003318/0.3125, allocations: 71.89 kB / 479.5 MB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000443/0.3129, allocations: 168.7 kB / 479.6 MB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.642e-05/0.3129, allocations: 23.92 kB / 479.7 MB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003404/0.3163, allocations: 2.631 MB / 482.3 MB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3163, allocations: 0 / 482.3 MB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002178/0.3185, allocations: 1.185 MB / 483.5 MB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004075/0.3189, allocations: 186.8 kB / 483.6 MB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001371/0.3191, allocations: 15.94 kB / 483.7 MB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003694/0.3194, allocations: 15.98 kB / 483.7 MB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.3196, allocations: 52.34 kB / 483.7 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.89e-05/0.3196, allocations: 31.98 kB / 483.8 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001105/0.3207, allocations: 0.8496 MB / 484.6 MB, free: 112 kB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3207, allocations: 0 / 484.6 MB, free: 112 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009778/0.3217, allocations: 391.2 kB / 485 MB, free: 15.73 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.003176/0.3249, allocations: 2.089 MB / 487.1 MB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.3267, allocations: 0.8706 MB / 488 MB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3267, allocations: 7.938 kB / 488 MB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.3278, allocations: 0.6122 MB / 488.6 MB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009336/0.3287, allocations: 210.1 kB / 488.8 MB, free: 11.85 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01391/0.3426, allocations: 9.43 MB / 498.2 MB, free: 2.113 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006045/0.3432, allocations: 0.5877 MB / 498.8 MB, free: 1.488 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005273/0.3438, allocations: 187.2 kB / 499 MB, free: 1.301 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006498/0.3444, allocations: 0.5696 MB / 499.5 MB, free: 0.7305 MB / 398.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3444, allocations: 0 / 499.5 MB, free: 0.7305 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07551/0.4199, allocations: 31.21 MB / 0.5183 GB, free: 1.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.14, allocations: 8 kB / 0.5183 GB, free: 1.672 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 16.070954396855086]