Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 119.8 kB / 18.45 MB, free: 4.477 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002145/0.002145, allocations: 190.9 kB / 21.39 MB, free: 1.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 207.6 MB / 231.8 MB, free: 4.18 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 51.92 kB / 342.2 MB, free: 10.05 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09347/0.09527, allocations: 49.13 MB / 391.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006332/0.1016, allocations: 5.163 MB / 396.5 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01104/0.1126, allocations: 8.7 MB / 405.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007349/0.1134, allocations: 39.62 kB / 405.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.1145, allocations: 393.4 kB / 405.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002701/0.1172, allocations: 0.8146 MB / 406.5 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002195/0.1194, allocations: 0.583 MB / 407.1 MB, free: 9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00303/0.1224, allocations: 1.658 MB / 408.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002624/0.1227, allocations: 107 kB / 408.8 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004302/0.1231, allocations: 286.6 kB / 409.1 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003831/0.1235, allocations: 318 kB / 409.4 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.67e-05/0.1235, allocations: 28 kB / 409.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001539/0.1251, allocations: 0.5621 MB / 410 MB, free: 6.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.1252, allocations: 103.3 kB / 410.1 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004529/0.1256, allocations: 405.5 kB / 410.5 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002037/0.1277, allocations: 1.206 MB / 411.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1277, allocations: 0 / 411.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1277, allocations: 0 / 411.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.646e-05/0.1277, allocations: 4 kB / 411.7 MB, free: 4.32 MB / 334.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.002168/0.1299, allocations: 1.309 MB / 413 MB, free: 2.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.1299, allocations: 8.031 kB / 413 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.534e-05/0.13, allocations: 66.72 kB / 413.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.1302, allocations: 120.2 kB / 413.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001346/0.1315, allocations: 0.864 MB / 414.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/0.1315, allocations: 20.56 kB / 414.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.897e-05/0.1316, allocations: 24 kB / 414.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005279/0.1321, allocations: 311.6 kB / 414.4 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1321, allocations: 0 / 414.4 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.1322, allocations: 8 kB / 414.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.1322, allocations: 8 kB / 414.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004247/0.1326, allocations: 238.1 kB / 414.7 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.1346, allocations: 1.183 MB / 415.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003852/0.1349, allocations: 186.5 kB / 416 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003149/0.1353, allocations: 190.2 kB / 416.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009708/0.145, allocations: 8.569 MB / 424.8 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.145, allocations: 30.56 kB / 424.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 4.748e-06/0.145, allocations: 3.984 kB / 424.8 MB, free: 5.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001766/0.1468, allocations: 0.6548 MB / 425.5 MB, free: 4.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.595e-05/0.1468, allocations: 81.11 kB / 425.6 MB, free: 4.809 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.1479, allocations: 0.8025 MB / 426.4 MB, free: 3.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.509e-05/0.1479, allocations: 33.64 kB / 426.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000385/0.1483, allocations: 453 kB / 426.8 MB, free: 3.504 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.906e-05/0.1484, allocations: 79.27 kB / 426.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.1485, allocations: 53.94 kB / 427 MB, free: 3.367 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1486, allocations: 325.9 kB / 427.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.1488, allocations: 64.2 kB / 427.3 MB, free: 2.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002115/0.149, allocations: 153.8 kB / 427.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003806/0.1494, allocations: 228.5 kB / 427.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1494, allocations: 0 / 427.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007254/0.1501, allocations: 406 kB / 428.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.1501, allocations: 4 kB / 428.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.314e-05/0.1502, allocations: 16 kB / 428.1 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004085/0.1506, allocations: 144.9 kB / 428.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.1508, allocations: 35.97 kB / 428.3 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007506/0.1515, allocations: 0.7162 MB / 429 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003098/0.1518, allocations: 27.88 kB / 429 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-05/0.1519, allocations: 19.98 kB / 429.1 MB, free: 1.148 MB / 350.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.0002977/0.1521, allocations: 201.8 kB / 429.3 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.1523, allocations: 111.3 kB / 429.4 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008307/0.1531, allocations: 387.8 kB / 429.8 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.1531, allocations: 0 / 429.8 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.1531, allocations: 4 kB / 429.8 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.1531, allocations: 7.984 kB / 429.8 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007224/0.1539, allocations: 0.5036 MB / 430.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.589e-05/0.1539, allocations: 19.88 kB / 430.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.154, allocations: 23.97 kB / 430.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002961/0.1543, allocations: 128.8 kB / 430.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.5e-05/0.1543, allocations: 12 kB / 430.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006468/0.155, allocations: 0.6969 MB / 431.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.155, allocations: 0 / 431.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006568/0.1557, allocations: 472.2 kB / 431.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002669/0.1559, allocations: 172.4 kB / 431.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.504e-05/0.156, allocations: 4 kB / 431.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.1562, allocations: 11.98 kB / 431.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.775e-05/0.1563, allocations: 19.91 kB / 431.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.1563, allocations: 8 kB / 431.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007255/0.157, allocations: 0.5423 MB / 432.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.157, allocations: 0 / 432.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006715/0.1577, allocations: 191.7 kB / 432.5 MB, free: 13.52 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.001536/0.1592, allocations: 1.177 MB / 433.7 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006844/0.1599, allocations: 279.7 kB / 434 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1599, allocations: 0 / 434 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003062/0.1602, allocations: 167.3 kB / 434.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007326/0.161, allocations: 140.6 kB / 434.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007792/0.1688, allocations: 5.32 MB / 439.6 MB, free: 6.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006159/0.1694, allocations: 0.9413 MB / 440.6 MB, free: 5.234 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003588/0.1697, allocations: 110.7 kB / 440.7 MB, free: 5.121 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003674/0.1701, allocations: 307.3 kB / 441 MB, free: 4.82 MB / 366.1 MB Notification: Performance of SimCode: time 2.094e-06/0.1701, allocations: 0 / 441 MB, free: 4.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0554/0.2255, allocations: 18.41 MB / 459.4 MB, free: 2.328 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/13.77, allocations: 0 / 459.4 MB, free: 2.328 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 16.367150830104947]