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.00125/0.00125, allocations: 105.1 kB / 21.22 MB, free: 0.6211 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.001359/0.001359, allocations: 209.4 kB / 24.51 MB, free: 3.91 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.407/1.407, allocations: 230.5 MB / 258.2 MB, free: 7.797 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 63.91 kB / 378.5 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2618, allocations: 53.41 MB / 431.9 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007804/0.2696, allocations: 6.476 MB / 438.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01291/0.2825, allocations: 9.316 MB / 447.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00143/0.2839, allocations: 118.6 kB / 447.8 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001967/0.2859, allocations: 0.6523 MB / 448.5 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004366/0.2902, allocations: 1.206 MB / 449.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002267/0.2925, allocations: 0.6759 MB / 450.3 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004752/0.2972, allocations: 2.571 MB / 452.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004356/0.2977, allocations: 188.3 kB / 453.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008269/0.2985, allocations: 0.5093 MB / 453.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006715/0.2992, allocations: 0.5395 MB / 454.1 MB, free: 88 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.2993, allocations: 56 kB / 454.2 MB, free: 32 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001835/0.3011, allocations: 0.7221 MB / 454.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000206/0.3013, allocations: 182.8 kB / 455.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006257/0.302, allocations: 0.5006 MB / 455.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002668/0.3046, allocations: 1.984 MB / 457.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3046, allocations: 0 / 457.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3046, allocations: 3.938 kB / 457.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.195e-05/0.3046, allocations: 0 / 457.6 MB, free: 12.63 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.003092/0.3077, allocations: 1.967 MB / 459.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.3078, allocations: 8.031 kB / 459.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.149e-05/0.3078, allocations: 13.19 kB / 459.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/0.3079, allocations: 98.64 kB / 459.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002742/0.3082, allocations: 207.7 kB / 459.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002058/0.3103, allocations: 1.247 MB / 461.1 MB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.3103, allocations: 33 kB / 461.2 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.3104, allocations: 47.95 kB / 461.2 MB, free: 8.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.3114, allocations: 0.5119 MB / 461.7 MB, free: 8.391 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.3115, allocations: 0 / 461.7 MB, free: 8.391 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.067e-05/0.3115, allocations: 16 kB / 461.7 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.746e-05/0.3115, allocations: 23.98 kB / 461.8 MB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009769/0.3125, allocations: 472.1 kB / 462.2 MB, free: 7.887 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00339/0.3159, allocations: 1.949 MB / 464.2 MB, free: 5.863 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009423/0.3168, allocations: 0.5062 MB / 464.7 MB, free: 5.348 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007333/0.3176, allocations: 473.2 kB / 465.1 MB, free: 4.887 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005091/0.3227, allocations: 2.28 MB / 467.4 MB, free: 2.582 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006321/0.3233, allocations: 313.5 kB / 467.7 MB, free: 2.262 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 3.426e-06/0.3233, allocations: 0 / 467.7 MB, free: 2.262 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005131/0.3284, allocations: 2.27 MB / 470 MB, free: 15.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.3285, allocations: 63.83 kB / 470.1 MB, free: 15.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001654/0.3302, allocations: 1.291 MB / 471.3 MB, free: 14.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.633e-05/0.3302, allocations: 29.7 kB / 471.4 MB, free: 14.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006438/0.3308, allocations: 0.7041 MB / 472.1 MB, free: 13.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.3311, allocations: 230 kB / 472.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001976/0.3312, allocations: 126.3 kB / 472.4 MB, free: 13.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3314, allocations: 330 kB / 472.7 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004611/0.3319, allocations: 221.5 kB / 473 MB, free: 12.94 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005595/0.3324, allocations: 355 kB / 473.3 MB, free: 12.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.3335, allocations: 0.6201 MB / 473.9 MB, free: 11.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.3335, allocations: 3.938 kB / 473.9 MB, free: 11.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001809/0.3353, allocations: 0.964 MB / 474.9 MB, free: 10.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.3353, allocations: 8 kB / 474.9 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001233/0.3354, allocations: 63.98 kB / 475 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005255/0.336, allocations: 181 kB / 475.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004403/0.3364, allocations: 111.8 kB / 475.3 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003484/0.3399, allocations: 2.629 MB / 477.9 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005737/0.3405, allocations: 31.95 kB / 477.9 MB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-05/0.3405, allocations: 36 kB / 477.9 MB, free: 7.723 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.0004671/0.341, allocations: 270.3 kB / 478.2 MB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002116/0.3412, allocations: 190.8 kB / 478.4 MB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/0.3432, allocations: 0.9697 MB / 479.4 MB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.3432, allocations: 4 kB / 479.4 MB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.3432, allocations: 4 kB / 479.4 MB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.3432, allocations: 7.922 kB / 479.4 MB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.3443, allocations: 0.8037 MB / 480.2 MB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.573e-05/0.3444, allocations: 60 kB / 480.2 MB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003227/0.3447, allocations: 67.88 kB / 480.3 MB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000465/0.3452, allocations: 176.7 kB / 480.5 MB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.277e-05/0.3452, allocations: 19.94 kB / 480.5 MB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003386/0.3486, allocations: 2.623 MB / 483.1 MB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3486, allocations: 0 / 483.1 MB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002332/0.351, allocations: 1.185 MB / 484.3 MB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004365/0.3514, allocations: 186.8 kB / 484.5 MB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.3515, allocations: 15.94 kB / 484.5 MB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000359/0.3519, allocations: 23.97 kB / 484.5 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.352, allocations: 52.34 kB / 484.6 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.053e-05/0.3521, allocations: 24 kB / 484.6 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001201/0.3533, allocations: 0.8496 MB / 485.5 MB, free: 24 kB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3533, allocations: 0 / 485.5 MB, free: 24 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.00101/0.3543, allocations: 395.2 kB / 485.8 MB, free: 15.64 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.003293/0.3576, allocations: 2.093 MB / 487.9 MB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001782/0.3594, allocations: 0.8787 MB / 488.8 MB, free: 12.6 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3594, allocations: 0 / 488.8 MB, free: 12.6 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.3605, allocations: 0.612 MB / 489.4 MB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009228/0.3614, allocations: 198.1 kB / 489.6 MB, free: 11.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.3754, allocations: 9.446 MB / 499.1 MB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005989/0.376, allocations: 0.5876 MB / 499.7 MB, free: 1.391 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000511/0.3765, allocations: 183.2 kB / 499.8 MB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006808/0.3772, allocations: 0.5696 MB / 0.4887 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3772, allocations: 0 / 0.4887 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06863/0.4458, allocations: 31.06 MB / 0.519 GB, free: 1.727 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.18/15.63, allocations: 6.562 kB / 0.519 GB, free: 1.723 MB / 430.1 MB " [Timeout remaining time 644] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.093357622041367]