Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.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.002049/0.002049, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001468/0.001468, allocations: 214.7 kB / 23.73 MB, free: 4.16 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.419/1.419, allocations: 230.5 MB / 257.4 MB, free: 7.785 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.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 55.91 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2361, allocations: 53.41 MB / 431.1 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006992/0.2431, allocations: 4.641 MB / 435.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01054/0.2536, allocations: 7.885 MB / 443.7 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005319/0.2542, allocations: 59.38 kB / 443.7 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008914/0.2551, allocations: 361.5 kB / 444.1 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002055/0.2571, allocations: 0.8419 MB / 444.9 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001301/0.2584, allocations: 0.6026 MB / 445.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002249/0.2607, allocations: 1.725 MB / 447.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00021/0.2609, allocations: 95.38 kB / 447.3 MB, free: 6.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000389/0.2613, allocations: 322.5 kB / 447.6 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004013/0.2617, allocations: 310 kB / 448 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.494e-05/0.2617, allocations: 32 kB / 448 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001103/0.2628, allocations: 0.5697 MB / 448.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.583e-05/0.2629, allocations: 103.3 kB / 448.7 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002956/0.2632, allocations: 310.1 kB / 449 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001435/0.2647, allocations: 1.225 MB / 450.2 MB, free: 3.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2647, allocations: 4 kB / 450.2 MB, free: 3.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.065e-06/0.2647, allocations: 7.984 kB / 450.2 MB, free: 3.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.2647, allocations: 0 / 450.2 MB, free: 3.32 MB / 350.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.001927/0.2666, allocations: 1.234 MB / 451.4 MB, free: 2.051 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2667, allocations: 11.98 kB / 451.4 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.693e-05/0.2667, allocations: 70.66 kB / 451.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002859/0.267, allocations: 132.2 kB / 451.6 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.2683, allocations: 0.777 MB / 452.4 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.2683, allocations: 20.5 kB / 452.4 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.474e-05/0.2684, allocations: 24 kB / 452.5 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005457/0.2689, allocations: 341.5 kB / 452.8 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.2689, allocations: 0 / 452.8 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.269, allocations: 8 kB / 452.8 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.269, allocations: 8 kB / 452.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004373/0.2694, allocations: 230 kB / 453 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001801/0.2712, allocations: 1.101 MB / 454.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003757/0.2716, allocations: 181.7 kB / 454.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003383/0.2719, allocations: 205.2 kB / 454.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006651/0.2786, allocations: 3.092 MB / 457.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.2786, allocations: 30.56 kB / 457.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.044e-06/0.2786, allocations: 0 / 457.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001572/0.2802, allocations: 0.5832 MB / 458.2 MB, free: 11.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.2802, allocations: 81.11 kB / 458.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009323/0.2812, allocations: 0.8025 MB / 459.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.049e-05/0.2812, allocations: 29.7 kB / 459.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003879/0.2816, allocations: 449 kB / 459.6 MB, free: 9.664 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.021e-05/0.2817, allocations: 83.27 kB / 459.6 MB, free: 9.582 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.064e-05/0.2818, allocations: 57.88 kB / 459.7 MB, free: 9.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.2819, allocations: 321.9 kB / 460 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.282, allocations: 68.2 kB / 460.1 MB, free: 9.133 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.2823, allocations: 167.6 kB / 460.2 MB, free: 8.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003751/0.2826, allocations: 232.9 kB / 460.5 MB, free: 8.672 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.2826, allocations: 4 kB / 460.5 MB, free: 8.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006394/0.2833, allocations: 413.7 kB / 460.9 MB, free: 8.254 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.2833, allocations: 11.94 kB / 460.9 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.813e-05/0.2833, allocations: 12 kB / 460.9 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003572/0.2837, allocations: 136.8 kB / 461 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001801/0.2839, allocations: 43.91 kB / 461.1 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006934/0.2846, allocations: 0.7032 MB / 461.8 MB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002374/0.2848, allocations: 27.78 kB / 461.8 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.361e-05/0.2848, allocations: 15.98 kB / 461.8 MB, free: 7.281 MB / 366.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.0002522/0.2851, allocations: 198 kB / 462 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.2852, allocations: 107.3 kB / 462.1 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007681/0.286, allocations: 402.2 kB / 462.5 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.286, allocations: 4 kB / 462.5 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.286, allocations: 0 / 462.5 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.286, allocations: 7.969 kB / 462.5 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005705/0.2866, allocations: 462.7 kB / 463 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.73e-05/0.2866, allocations: 16 kB / 463 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001197/0.2867, allocations: 15.98 kB / 463 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002871/0.287, allocations: 144.7 kB / 463.2 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.287, allocations: 11.94 kB / 463.2 MB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006353/0.2877, allocations: 0.7007 MB / 463.9 MB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2877, allocations: 3.938 kB / 463.9 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006024/0.2883, allocations: 452.5 kB / 464.3 MB, free: 4.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/0.2885, allocations: 95.27 kB / 464.4 MB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.955e-05/0.2885, allocations: 4 kB / 464.4 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.2887, allocations: 8 kB / 464.4 MB, free: 4.586 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.2888, allocations: 19.91 kB / 464.4 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.2888, allocations: 12 kB / 464.4 MB, free: 4.555 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006513/0.2895, allocations: 0.5383 MB / 465 MB, free: 4.008 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2895, allocations: 0 / 465 MB, free: 4.008 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005405/0.29, allocations: 195.6 kB / 465.2 MB, free: 3.816 MB / 366.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.001341/0.2914, allocations: 1.189 MB / 466.4 MB, free: 2.598 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005694/0.2919, allocations: 263.4 kB / 466.6 MB, free: 2.328 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2919, allocations: 0 / 466.6 MB, free: 2.328 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000315/0.2922, allocations: 171.2 kB / 466.8 MB, free: 2.148 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000758/0.293, allocations: 171.7 kB / 467 MB, free: 1.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006877/0.2999, allocations: 5.325 MB / 472.3 MB, free: 12.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/0.3002, allocations: 345.4 kB / 472.6 MB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002988/0.3005, allocations: 110.7 kB / 472.7 MB, free: 11.99 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003686/0.3009, allocations: 311.3 kB / 473 MB, free: 11.69 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3009, allocations: 3.938 kB / 473 MB, free: 11.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1175/0.4184, allocations: 18.86 MB / 491.9 MB, free: 9.004 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.5, allocations: 6.531 kB / 491.9 MB, free: 9 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.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: 15.898507597390562]