Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001268/0.001268, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.413/1.413, allocations: 227.7 MB / 247.4 MB, free: 10.53 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 66.73 kB / 307.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08947/0.09131, allocations: 50.53 MB / 357.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006442/0.0978, allocations: 5.305 MB / 363.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.159/0.2568, allocations: 9.053 MB / 372.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006631/0.2575, allocations: 19.62 kB / 372.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009187/0.2585, allocations: 341.5 kB / 372.6 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002229/0.2607, allocations: 0.7178 MB / 373.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001575/0.2623, allocations: 0.5213 MB / 373.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002432/0.2647, allocations: 1.719 MB / 375.6 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002768/0.265, allocations: 170.2 kB / 375.8 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003923/0.2654, allocations: 301.2 kB / 376.1 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003102/0.2658, allocations: 328.2 kB / 376.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.348e-05/0.2658, allocations: 28.88 kB / 376.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001214/0.267, allocations: 0.669 MB / 377.1 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.216e-05/0.2671, allocations: 102.2 kB / 377.2 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002948/0.2674, allocations: 406.3 kB / 377.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009603/0.2684, allocations: 0.884 MB / 378.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2684, allocations: 1.562 kB / 378.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2684, allocations: 0.7031 kB / 378.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.2684, allocations: 0 / 378.5 MB, free: 8.305 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001607/0.27, allocations: 1.279 MB / 379.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.2701, allocations: 9.594 kB / 379.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000263/0.2704, allocations: 127.5 kB / 379.9 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.2714, allocations: 0.8524 MB / 380.7 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.2714, allocations: 18.41 kB / 380.7 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.866e-05/0.2715, allocations: 26.95 kB / 380.8 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/0.272, allocations: 310.5 kB / 381.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.272, allocations: 0 / 381.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.09e-05/0.2721, allocations: 12.36 kB / 381.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.2721, allocations: 7.031 kB / 381.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003873/0.2725, allocations: 236.1 kB / 381.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.2741, allocations: 1.189 MB / 382.5 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003381/0.2744, allocations: 198.2 kB / 382.7 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003059/0.2747, allocations: 229.1 kB / 382.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007657/0.2824, allocations: 8.875 MB / 391.8 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.2824, allocations: 37.16 kB / 391.8 MB, free: 13.87 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.224e-06/0.2825, allocations: 1.094 kB / 391.8 MB, free: 13.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001615/0.2841, allocations: 0.6596 MB / 392.5 MB, free: 13.56 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.2842, allocations: 83.41 kB / 392.6 MB, free: 13.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009543/0.2851, allocations: 0.7935 MB / 393.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.2852, allocations: 39.08 kB / 393.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003686/0.2855, allocations: 446.9 kB / 393.8 MB, free: 12.74 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.305e-05/0.2856, allocations: 75.38 kB / 393.9 MB, free: 12.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.32e-05/0.2857, allocations: 52.72 kB / 394 MB, free: 12.65 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.2858, allocations: 321.8 kB / 394.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/0.286, allocations: 70.23 kB / 394.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/0.2862, allocations: 143.3 kB / 394.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003474/0.2866, allocations: 226.8 kB / 394.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.2866, allocations: 3.938 kB / 394.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006052/0.2872, allocations: 409.7 kB / 395.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.2872, allocations: 9.594 kB / 395.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.479e-05/0.2872, allocations: 12.69 kB / 395.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003546/0.2876, allocations: 146 kB / 395.3 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.2878, allocations: 34.98 kB / 395.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007775/0.2886, allocations: 0.7 MB / 396 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002868/0.2889, allocations: 31.97 kB / 396.1 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.398e-05/0.2889, allocations: 12 kB / 396.1 MB, free: 11.19 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002412/0.2892, allocations: 203.8 kB / 396.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.2893, allocations: 105.2 kB / 396.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000793/0.2901, allocations: 408 kB / 396.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.2901, allocations: 10.28 kB / 396.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2901, allocations: 0.875 kB / 396.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.2901, allocations: 3.875 kB / 396.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000675/0.2908, allocations: 0.5007 MB / 397.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.21e-05/0.2908, allocations: 14.47 kB / 397.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.291, allocations: 23.78 kB / 397.3 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002703/0.2912, allocations: 137.5 kB / 397.5 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.2913, allocations: 7.906 kB / 397.5 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006349/0.2919, allocations: 0.7074 MB / 398.2 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2919, allocations: 1.281 kB / 398.2 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005923/0.2925, allocations: 471.2 kB / 398.6 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001996/0.2927, allocations: 175.8 kB / 398.8 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.488e-05/0.2928, allocations: 1.375 kB / 398.8 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.293, allocations: 6.656 kB / 398.8 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.809e-05/0.2931, allocations: 13.23 kB / 398.8 MB, free: 9.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.2931, allocations: 12.16 kB / 398.8 MB, free: 9.328 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006279/0.2938, allocations: 0.5361 MB / 399.4 MB, free: 9.012 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2938, allocations: 5.375 kB / 399.4 MB, free: 9.008 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005947/0.2944, allocations: 198 kB / 399.6 MB, free: 8.973 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005164/0.2949, allocations: 295.3 kB / 399.9 MB, free: 8.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005807/0.2955, allocations: 282.2 kB / 400.1 MB, free: 8.684 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.2955, allocations: 0 / 400.1 MB, free: 8.684 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00032/0.2958, allocations: 186.6 kB / 400.3 MB, free: 8.562 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007734/0.2966, allocations: 161 kB / 400.5 MB, free: 8.477 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.2987, allocations: 1.502 MB / 402 MB, free: 7.477 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006272/0.2994, allocations: 0.9375 MB / 402.9 MB, free: 6.668 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.331e-05/0.2994, allocations: 53.62 kB / 403 MB, free: 6.66 MB / 318.1 MB Notification: Performance of SimCode: time 2.474e-06/0.2995, allocations: 0 / 403 MB, free: 6.66 MB / 318.1 MB Notification: Performance of Templates: time 0.01959/0.3191, allocations: 14.38 MB / 417.3 MB, free: 9.926 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches