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.001054/0.001054, allocations: 80.34 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001345/0.001345, allocations: 156.9 kB / 23.94 MB, free: 0.6133 MB / 18.57 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 0.9091/0.9091, allocations: 177 MB / 204.1 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.483e-06/1.483e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.165e-05/2.313e-05, allocations: 3.266 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.004989/0.005012, allocations: 6.49 MB / 331 MB, free: 9.367 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008722/0.01373, allocations: 9.328 MB / 340.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009734/0.01471, allocations: 122.6 kB / 340.4 MB, free: 15.87 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001276/0.01598, allocations: 0.6461 MB / 341.1 MB, free: 15.23 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002459/0.01844, allocations: 1.248 MB / 342.3 MB, free: 13.97 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001238/0.01968, allocations: 0.6835 MB / 343 MB, free: 13.28 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002388/0.02207, allocations: 2.644 MB / 345.7 MB, free: 10.63 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003012/0.02237, allocations: 176.4 kB / 345.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000702/0.02307, allocations: 0.7169 MB / 346.6 MB, free: 9.715 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003368/0.02341, allocations: 378.6 kB / 346.9 MB, free: 9.344 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.401e-05/0.02347, allocations: 59.94 kB / 347 MB, free: 9.285 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009717/0.02444, allocations: 0.6907 MB / 347.7 MB, free: 8.594 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.02456, allocations: 190.8 kB / 347.9 MB, free: 8.406 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002735/0.02484, allocations: 378.8 kB / 348.2 MB, free: 8.035 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001506/0.02634, allocations: 1.989 MB / 350.2 MB, free: 6.039 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.02635, allocations: 4 kB / 350.2 MB, free: 6.035 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.02635, allocations: 4 kB / 350.2 MB, free: 6.031 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.721e-05/0.02638, allocations: 0 / 350.2 MB, free: 6.031 MB / 314.7 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.001931/0.02832, allocations: 1.951 MB / 352.2 MB, free: 4.039 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.02836, allocations: 15.98 kB / 352.2 MB, free: 4.023 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.461e-05/0.02843, allocations: 90.69 kB / 352.3 MB, free: 3.926 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002254/0.02866, allocations: 207.7 kB / 352.5 MB, free: 3.723 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001339/0.02999, allocations: 1.239 MB / 353.7 MB, free: 2.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.03002, allocations: 33.38 kB / 353.8 MB, free: 2.395 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.847e-05/0.03008, allocations: 48.08 kB / 353.8 MB, free: 2.348 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000597/0.03067, allocations: 0.5197 MB / 354.3 MB, free: 1.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.03069, allocations: 0 / 354.3 MB, free: 1.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.03072, allocations: 16 kB / 354.3 MB, free: 1.805 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.03073, allocations: 19.98 kB / 354.4 MB, free: 1.785 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005584/0.03129, allocations: 472.1 kB / 354.8 MB, free: 1.328 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002071/0.03336, allocations: 1.942 MB / 356.8 MB, free: 15.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005754/0.03394, allocations: 0.4992 MB / 357.3 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004729/0.03441, allocations: 473.3 kB / 357.7 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003008/0.03742, allocations: 2.257 MB / 360 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003843/0.0378, allocations: 318 kB / 360.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 3.897e-06/0.03781, allocations: 7.922 kB / 360.3 MB, free: 11.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=65): time 0.003168/0.04097, allocations: 2.282 MB / 362.6 MB, free: 9.391 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.04102, allocations: 63.89 kB / 362.6 MB, free: 9.316 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.04208, allocations: 1.288 MB / 363.9 MB, free: 8.031 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.04211, allocations: 33.7 kB / 364 MB, free: 7.992 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003995/0.04251, allocations: 0.7041 MB / 364.7 MB, free: 7.285 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.04263, allocations: 226 kB / 364.9 MB, free: 7.062 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.04275, allocations: 126.3 kB / 365 MB, free: 6.934 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.325e-05/0.04284, allocations: 334 kB / 365.3 MB, free: 6.602 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002699/0.04311, allocations: 213.5 kB / 365.6 MB, free: 6.395 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003133/0.04342, allocations: 364.4 kB / 365.9 MB, free: 5.984 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006355/0.04406, allocations: 0.6165 MB / 366.5 MB, free: 5.316 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.04406, allocations: 4 kB / 366.5 MB, free: 5.312 MB / 330.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001093/0.04515, allocations: 0.9677 MB / 367.5 MB, free: 4.332 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.04517, allocations: 8 kB / 367.5 MB, free: 4.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-05/0.04523, allocations: 63.94 kB / 367.6 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003698/0.0456, allocations: 185.2 kB / 367.7 MB, free: 4.078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.04587, allocations: 103.8 kB / 367.8 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002379/0.04825, allocations: 2.628 MB / 370.5 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003437/0.04859, allocations: 27.97 kB / 370.5 MB, free: 1.215 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.53e-05/0.04864, allocations: 31.98 kB / 370.5 MB, free: 1.184 MB / 330.7 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.0003409/0.04898, allocations: 270.8 kB / 370.8 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.04911, allocations: 190.9 kB / 371 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001231/0.05034, allocations: 0.9702 MB / 372 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.05035, allocations: 8 kB / 372 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.05035, allocations: 0 / 372 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.05036, allocations: 7.984 kB / 372 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007521/0.05111, allocations: 0.8073 MB / 372.8 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-05/0.05116, allocations: 63.98 kB / 372.8 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001611/0.05133, allocations: 67.89 kB / 372.9 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002867/0.05161, allocations: 175.9 kB / 373.1 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.297e-05/0.05164, allocations: 23.98 kB / 373.1 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002033/0.05368, allocations: 2.613 MB / 375.7 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.05368, allocations: 0 / 375.7 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.05497, allocations: 1.185 MB / 376.9 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.05522, allocations: 186.8 kB / 377.1 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.821e-05/0.0553, allocations: 12 kB / 377.1 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.05548, allocations: 15.98 kB / 377.1 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.0556, allocations: 64.28 kB / 377.2 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.247e-05/0.05563, allocations: 23.98 kB / 377.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007739/0.0564, allocations: 0.8496 MB / 378 MB, free: 9.477 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.0564, allocations: 7.938 kB / 378.1 MB, free: 9.469 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006823/0.05708, allocations: 391.2 kB / 378.4 MB, free: 9.086 MB / 346.7 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.001999/0.05908, allocations: 2.105 MB / 380.5 MB, free: 6.945 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.06019, allocations: 0.8792 MB / 381.4 MB, free: 6.043 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.06019, allocations: 0 / 381.4 MB, free: 6.043 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000593/0.06078, allocations: 0.6087 MB / 382 MB, free: 5.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005518/0.06133, allocations: 210.2 kB / 382.2 MB, free: 5.203 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009738/0.07107, allocations: 9.362 MB / 391.6 MB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.07146, allocations: 0.5916 MB / 392.2 MB, free: 10.9 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003607/0.07182, allocations: 183.2 kB / 392.4 MB, free: 10.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004107/0.07223, allocations: 0.5745 MB / 392.9 MB, free: 10.14 MB / 362.7 MB Notification: Performance of SimCode: time 1.904e-06/0.07223, allocations: 0 / 392.9 MB, free: 10.14 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04874/0.121, allocations: 31.36 MB / 424.3 MB, free: 10.94 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.03/8.151, allocations: 4.062 kB / 424.3 MB, free: 10.94 MB / 394.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins/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: 10.197779260575771]