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.001799/0.001799, allocations: 114 kB / 20.44 MB, free: 1.469 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.00226/0.00226, allocations: 214.1 kB / 23.74 MB, free: 4.695 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.46/1.46, allocations: 230.5 MB / 257.4 MB, free: 8.02 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.002001/0.002001, allocations: 59.91 kB / 377.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.24, allocations: 53.42 MB / 431.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.007003/0.247, allocations: 5.32 MB / 436.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.2591, allocations: 9.166 MB / 445.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007682/0.2599, allocations: 55.38 kB / 445.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001175/0.261, allocations: 405.4 kB / 446.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002648/0.2637, allocations: 0.8419 MB / 447 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001746/0.2654, allocations: 0.5987 MB / 447.6 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002905/0.2683, allocations: 1.733 MB / 449.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002811/0.2686, allocations: 107.3 kB / 449.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005503/0.2692, allocations: 314.6 kB / 449.7 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000539/0.2697, allocations: 325.9 kB / 450 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.174e-05/0.2698, allocations: 28 kB / 450 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00152/0.2713, allocations: 0.6672 MB / 450.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.2714, allocations: 107.3 kB / 450.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000485/0.2719, allocations: 401.5 kB / 451.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001774/0.2737, allocations: 1.225 MB / 452.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2737, allocations: 0 / 452.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2737, allocations: 0 / 452.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.634e-05/0.2737, allocations: 0 / 452.4 MB, free: 1.352 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.002266/0.276, allocations: 1.238 MB / 453.7 MB, free: 80 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.276, allocations: 12.03 kB / 453.7 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/0.2762, allocations: 62.78 kB / 453.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003397/0.2765, allocations: 128.2 kB / 453.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001413/0.2779, allocations: 0.7847 MB / 454.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/0.2779, allocations: 20.5 kB / 454.7 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.453e-05/0.278, allocations: 31.95 kB / 454.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005724/0.2786, allocations: 307.8 kB / 455 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.2786, allocations: 0 / 455 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.022e-05/0.2786, allocations: 12 kB / 455 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.2786, allocations: 4 kB / 455 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004563/0.2791, allocations: 242 kB / 455.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.281, allocations: 1.144 MB / 456.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003846/0.2814, allocations: 185.7 kB / 456.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003322/0.2817, allocations: 201.2 kB / 456.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006787/0.2885, allocations: 3.115 MB / 459.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.2886, allocations: 34.56 kB / 459.9 MB, free: 9.633 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.734e-06/0.2886, allocations: 0 / 459.9 MB, free: 9.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001614/0.2902, allocations: 0.5795 MB / 460.5 MB, free: 9.043 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.133e-05/0.2903, allocations: 77.11 kB / 460.6 MB, free: 8.949 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/0.2913, allocations: 0.7987 MB / 461.4 MB, free: 8.133 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.067e-05/0.2913, allocations: 29.7 kB / 461.4 MB, free: 8.098 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004252/0.2917, allocations: 445 kB / 461.9 MB, free: 7.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.952e-05/0.2918, allocations: 87.25 kB / 461.9 MB, free: 7.574 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.755e-05/0.2919, allocations: 57.89 kB / 462 MB, free: 7.512 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.2921, allocations: 321.9 kB / 462.3 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.2922, allocations: 68.2 kB / 462.4 MB, free: 7.125 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002144/0.2924, allocations: 149.8 kB / 462.5 MB, free: 6.945 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003638/0.2928, allocations: 225 kB / 462.7 MB, free: 6.695 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2928, allocations: 0 / 462.7 MB, free: 6.695 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006666/0.2935, allocations: 413.4 kB / 463.1 MB, free: 6.281 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.2935, allocations: 10.5 kB / 463.2 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.239e-05/0.2935, allocations: 16 kB / 463.2 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003913/0.2939, allocations: 140.7 kB / 463.3 MB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.2941, allocations: 32.2 kB / 463.3 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007623/0.2948, allocations: 0.715 MB / 464.1 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/0.2951, allocations: 27.8 kB / 464.1 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.421e-05/0.2951, allocations: 12 kB / 464.1 MB, free: 5.309 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.0002666/0.2954, allocations: 209.7 kB / 464.3 MB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.2955, allocations: 107.3 kB / 464.4 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008072/0.2963, allocations: 391.5 kB / 464.8 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.2963, allocations: 4 kB / 464.8 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2963, allocations: 8 kB / 464.8 MB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.2964, allocations: 7.922 kB / 464.8 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006905/0.297, allocations: 486.6 kB / 465.3 MB, free: 4.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.548e-05/0.2971, allocations: 12 kB / 465.3 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.2972, allocations: 15.98 kB / 465.3 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003047/0.2975, allocations: 151.2 kB / 465.5 MB, free: 3.883 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.2975, allocations: 12 kB / 465.5 MB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006996/0.2982, allocations: 0.6969 MB / 466.2 MB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.2982, allocations: 0 / 466.2 MB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006382/0.2989, allocations: 452.4 kB / 466.6 MB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002016/0.2991, allocations: 95.33 kB / 466.7 MB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.918e-05/0.2991, allocations: 4 kB / 466.7 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.2994, allocations: 7.984 kB / 466.7 MB, free: 2.582 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.687e-05/0.2994, allocations: 23.92 kB / 466.7 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.2994, allocations: 8 kB / 466.7 MB, free: 2.551 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007066/0.3001, allocations: 0.5461 MB / 467.3 MB, free: 1.996 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3001, allocations: 0 / 467.3 MB, free: 1.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005657/0.3007, allocations: 199.6 kB / 467.5 MB, free: 1.801 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.001422/0.3021, allocations: 1.173 MB / 468.7 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000605/0.3027, allocations: 275.8 kB / 468.9 MB, free: 328 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3027, allocations: 0 / 468.9 MB, free: 328 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003086/0.303, allocations: 167.2 kB / 469.1 MB, free: 148 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007676/0.3038, allocations: 167.2 kB / 469.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007368/0.3112, allocations: 5.333 MB / 474.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006318/0.3118, allocations: 0.9374 MB / 475.5 MB, free: 9.492 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002996/0.3121, allocations: 106.7 kB / 475.6 MB, free: 9.383 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003583/0.3125, allocations: 311.3 kB / 475.9 MB, free: 9.078 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3125, allocations: 4 kB / 475.9 MB, free: 9.074 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07398/0.3865, allocations: 18.68 MB / 494.6 MB, free: 6.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/14.82, allocations: 64 / 494.6 MB, free: 6.535 MB / 398.1 MB " [Timeout remaining time 645] (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: 17.257712866878137]