Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000862/0.000862, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008213/0.0008213, allocations: 170 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8634/0.8634, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.122e-06/1.122e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.96e-05/2.072e-05, allocations: 6.219 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00389/0.00391, allocations: 4.661 MB / 329.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006367/0.01028, allocations: 7.878 MB / 337.1 MB, free: 3.332 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004289/0.01071, allocations: 59.38 kB / 337.2 MB, free: 3.273 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000634/0.01134, allocations: 349.6 kB / 337.5 MB, free: 2.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001533/0.01287, allocations: 0.8842 MB / 338.4 MB, free: 2.039 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.01396, allocations: 0.6101 MB / 339 MB, free: 1.426 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001746/0.01571, allocations: 1.775 MB / 340.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002539/0.01596, allocations: 99.33 kB / 340.9 MB, free: 15.53 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004109/0.01637, allocations: 458.8 kB / 341.3 MB, free: 15.08 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000228/0.0166, allocations: 227.2 kB / 341.5 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.834e-05/0.01664, allocations: 32 kB / 341.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007794/0.01742, allocations: 0.5774 MB / 342.1 MB, free: 14.25 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.214e-05/0.01748, allocations: 107.3 kB / 342.2 MB, free: 14.14 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.01763, allocations: 231.3 kB / 342.5 MB, free: 13.92 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.0187, allocations: 1.254 MB / 343.7 MB, free: 12.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.0187, allocations: 0 / 343.7 MB, free: 12.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.0187, allocations: 0 / 343.7 MB, free: 12.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.01871, allocations: 0 / 343.7 MB, free: 12.66 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001179/0.01989, allocations: 1.226 MB / 345 MB, free: 11.4 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.01993, allocations: 12.03 kB / 345 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.247e-05/0.01998, allocations: 62.72 kB / 345 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001892/0.02017, allocations: 132.2 kB / 345.2 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007906/0.02096, allocations: 0.7844 MB / 345.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.02098, allocations: 16.88 kB / 346 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.663e-05/0.02101, allocations: 27.94 kB / 346 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005664/0.02158, allocations: 333.5 kB / 346.3 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.02159, allocations: 0 / 346.3 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.02161, allocations: 12 kB / 346.3 MB, free: 9.938 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.02162, allocations: 11.98 kB / 346.3 MB, free: 9.926 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002501/0.02187, allocations: 230.1 kB / 346.6 MB, free: 9.699 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001062/0.02293, allocations: 1.09 MB / 347.6 MB, free: 8.547 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.02317, allocations: 179.6 kB / 347.8 MB, free: 8.363 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002059/0.02338, allocations: 197.5 kB / 348 MB, free: 8.164 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003487/0.02686, allocations: 3.111 MB / 351.1 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.02688, allocations: 38.56 kB / 351.2 MB, free: 4.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.132e-06/0.02688, allocations: 0 / 351.2 MB, free: 4.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009352/0.02782, allocations: 0.5741 MB / 351.7 MB, free: 4.398 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.02786, allocations: 81.11 kB / 351.8 MB, free: 4.301 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005522/0.02841, allocations: 0.8025 MB / 352.6 MB, free: 3.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.02843, allocations: 29.7 kB / 352.7 MB, free: 3.445 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/0.02864, allocations: 445 kB / 353.1 MB, free: 3.008 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.02868, allocations: 79.33 kB / 353.2 MB, free: 2.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.659e-05/0.02874, allocations: 53.94 kB / 353.2 MB, free: 2.871 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002971/0.02903, allocations: 318 kB / 353.5 MB, free: 2.555 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.442e-05/0.02912, allocations: 68.2 kB / 353.6 MB, free: 2.488 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.02924, allocations: 171.6 kB / 353.8 MB, free: 2.281 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002097/0.02945, allocations: 243.2 kB / 354 MB, free: 2.016 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.02945, allocations: 7.969 kB / 354 MB, free: 2.008 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003452/0.02979, allocations: 393.6 kB / 354.4 MB, free: 1.613 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.02981, allocations: 4 kB / 354.4 MB, free: 1.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.02982, allocations: 16 kB / 354.4 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002333/0.03006, allocations: 141.1 kB / 354.5 MB, free: 1.453 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-05/0.03014, allocations: 39.91 kB / 354.6 MB, free: 1.414 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004049/0.03055, allocations: 0.7031 MB / 355.3 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.03067, allocations: 39.64 kB / 355.3 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.03069, allocations: 12 kB / 355.3 MB, free: 0.6367 MB / 314.7 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.0001529/0.03084, allocations: 201.8 kB / 355.5 MB, free: 440 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.406e-05/0.03091, allocations: 107.3 kB / 355.6 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004449/0.03135, allocations: 399.5 kB / 356 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.03136, allocations: 7.984 kB / 356 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.03136, allocations: 7.938 kB / 356 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.03137, allocations: 0 / 356 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003491/0.03171, allocations: 462.6 kB / 356.5 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/0.03173, allocations: 16 kB / 356.5 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.534e-05/0.03178, allocations: 19.97 kB / 356.5 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001613/0.03194, allocations: 128.8 kB / 356.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.03196, allocations: 12 kB / 356.7 MB, free: 15.24 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003548/0.03231, allocations: 0.7161 MB / 357.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.03231, allocations: 0 / 357.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.03264, allocations: 450.5 kB / 357.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.478e-05/0.03273, allocations: 95.33 kB / 357.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.985e-05/0.03277, allocations: 4 kB / 357.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.03288, allocations: 7.984 kB / 357.9 MB, free: 13.94 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.03291, allocations: 15.98 kB / 357.9 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.03292, allocations: 12.06 kB / 358 MB, free: 13.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004032/0.03333, allocations: 0.5383 MB / 358.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03333, allocations: 0 / 358.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003199/0.03365, allocations: 199.6 kB / 358.7 MB, free: 13.17 MB / 330.7 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.0007739/0.03442, allocations: 1.193 MB / 359.9 MB, free: 11.95 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003417/0.03476, allocations: 278.8 kB / 360.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.03476, allocations: 3.938 kB / 360.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.03491, allocations: 166.4 kB / 360.3 MB, free: 11.49 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006775/0.03558, allocations: 164.3 kB / 360.5 MB, free: 11.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004325/0.03991, allocations: 5.315 MB / 365.8 MB, free: 5.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001908/0.0401, allocations: 349.4 kB / 366.1 MB, free: 5.453 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001866/0.04028, allocations: 106.7 kB / 366.2 MB, free: 5.344 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000206/0.04049, allocations: 312.4 kB / 366.6 MB, free: 5.039 MB / 330.7 MB Notification: Performance of SimCode: time 5.31e-07/0.04049, allocations: 0 / 366.6 MB, free: 5.039 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02821/0.0687, allocations: 19 MB / 385.6 MB, free: 2.289 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.021/8.089, allocations: 7.156 kB / 385.6 MB, free: 2.285 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-07 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 9.727352667599916]