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.001302/0.001302, allocations: 132.4 kB / 17.8 MB, free: 5.219 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.001536/0.001536, allocations: 210.5 kB / 20.75 MB, free: 2.27 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.541/1.541, allocations: 230.5 MB / 254 MB, free: 15.16 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.002141/0.002141, allocations: 67.89 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1092, allocations: 53.38 MB / 426.4 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.2207/0.3299, allocations: 5.308 MB / 431.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009751/0.3397, allocations: 9.147 MB / 440.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008302/0.3405, allocations: 57.66 kB / 440.9 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.3417, allocations: 397.7 kB / 441.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003027/0.3447, allocations: 0.848 MB / 442.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002455/0.3472, allocations: 0.6014 MB / 442.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002966/0.3501, allocations: 1.713 MB / 444.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002421/0.3504, allocations: 102.3 kB / 444.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000561/0.3509, allocations: 330.9 kB / 444.8 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004535/0.3514, allocations: 320.6 kB / 445.2 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.898e-05/0.3515, allocations: 34.22 kB / 445.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001811/0.3533, allocations: 0.6603 MB / 445.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.158e-05/0.3534, allocations: 97.45 kB / 445.9 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003588/0.3537, allocations: 408.3 kB / 446.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002038/0.3558, allocations: 1.221 MB / 447.6 MB, free: 260 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.3558, allocations: 0.8438 kB / 447.6 MB, free: 260 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3558, allocations: 1.188 kB / 447.6 MB, free: 260 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.3558, allocations: 0 / 447.6 MB, free: 260 kB / 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.002413/0.3582, allocations: 1.323 MB / 448.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.3582, allocations: 10.12 kB / 448.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.34e-05/0.3583, allocations: 61.75 kB / 449 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003538/0.3587, allocations: 132.4 kB / 449.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.3601, allocations: 0.8571 MB / 449.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.3601, allocations: 17.78 kB / 450 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.997e-05/0.3602, allocations: 29.08 kB / 450 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005917/0.3608, allocations: 310.5 kB / 450.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.3608, allocations: 0 / 450.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.579e-05/0.3608, allocations: 10.88 kB / 450.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.3608, allocations: 6.812 kB / 450.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004736/0.3613, allocations: 235.7 kB / 450.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002119/0.3634, allocations: 1.189 MB / 451.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003938/0.3638, allocations: 181.1 kB / 451.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003447/0.3642, allocations: 198.6 kB / 452.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01048/0.3746, allocations: 8.88 MB / 461 MB, free: 5.285 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.3747, allocations: 34.44 kB / 461 MB, free: 5.246 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.934e-06/0.3747, allocations: 0 / 461 MB, free: 5.246 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001746/0.3764, allocations: 0.6645 MB / 461.7 MB, free: 4.922 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.283e-05/0.3765, allocations: 80.42 kB / 461.8 MB, free: 4.828 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001135/0.3776, allocations: 0.7982 MB / 462.6 MB, free: 4.496 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.738e-05/0.3777, allocations: 30.45 kB / 462.6 MB, free: 4.461 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004449/0.3781, allocations: 445.4 kB / 463 MB, free: 4.102 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.861e-05/0.3782, allocations: 85.11 kB / 463.1 MB, free: 4.027 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.3783, allocations: 65.3 kB / 463.2 MB, free: 3.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3785, allocations: 320.4 kB / 463.5 MB, free: 3.664 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.3787, allocations: 64.73 kB / 463.5 MB, free: 3.637 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.3789, allocations: 149.2 kB / 463.7 MB, free: 3.504 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004081/0.3793, allocations: 233.6 kB / 463.9 MB, free: 3.332 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3793, allocations: 0.9062 kB / 463.9 MB, free: 3.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008364/0.3801, allocations: 405.7 kB / 464.3 MB, free: 3.117 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.3802, allocations: 6.719 kB / 464.3 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.739e-05/0.3802, allocations: 13.59 kB / 464.3 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004255/0.3806, allocations: 136.9 kB / 464.5 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.3808, allocations: 33.89 kB / 464.5 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007586/0.3816, allocations: 0.7145 MB / 465.2 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.382, allocations: 28.28 kB / 465.2 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.12e-05/0.382, allocations: 15.75 kB / 465.3 MB, free: 2.414 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.0002988/0.3823, allocations: 195 kB / 465.4 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.3825, allocations: 112.8 kB / 465.6 MB, free: 2.191 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000849/0.3833, allocations: 391.6 kB / 465.9 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.3833, allocations: 3.25 kB / 465.9 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3833, allocations: 0 / 465.9 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.3833, allocations: 6.016 kB / 465.9 MB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007963/0.3841, allocations: 0.5079 MB / 466.5 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.626e-05/0.3841, allocations: 15.41 kB / 466.5 MB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.3843, allocations: 16.27 kB / 466.5 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000323/0.3846, allocations: 145.2 kB / 466.6 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.3846, allocations: 11.03 kB / 466.6 MB, free: 1.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000789/0.3854, allocations: 0.7046 MB / 467.3 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3854, allocations: 0 / 467.3 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007054/0.3861, allocations: 451.3 kB / 467.8 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002856/0.3864, allocations: 176 kB / 468 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.461e-05/0.3865, allocations: 6.281 kB / 468 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.3867, allocations: 7.094 kB / 468 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.411e-05/0.3868, allocations: 16.67 kB / 468 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.3868, allocations: 12.33 kB / 468 MB, free: 400 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008/0.3876, allocations: 0.5448 MB / 468.5 MB, free: 68 kB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3876, allocations: 0 / 468.5 MB, free: 68 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008187/0.3884, allocations: 194.6 kB / 468.7 MB, free: 36 kB / 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.001706/0.3901, allocations: 1.182 MB / 469.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007131/0.3909, allocations: 275.9 kB / 470.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3909, allocations: 4 kB / 470.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000326/0.3912, allocations: 172.7 kB / 470.4 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008706/0.392, allocations: 159.8 kB / 470.5 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008512/0.4006, allocations: 5.317 MB / 475.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007084/0.4013, allocations: 0.9393 MB / 476.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004182/0.4017, allocations: 107.7 kB / 476.9 MB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004429/0.4021, allocations: 315.7 kB / 477.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of SimCode: time 2.465e-06/0.4021, allocations: 0 / 477.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05464/0.4568, allocations: 18.46 MB / 495.6 MB, free: 9.328 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14.07, allocations: 6.188 kB / 495.6 MB, free: 9.324 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.0002 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.csv","/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] "Error: Could not read variable J2.D.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv. Warning: Get data of variable J2.D.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv failed! Error: Could not read variable RC.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv. Warning: Get data of variable RC.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv failed! Error: Could not read variable J1.D.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv. Warning: Get data of variable J1.D.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.662083727074787]