Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 115.1 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 186 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 46.55 kB / 300.2 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08802/0.08915, allocations: 49.45 MB / 349.7 MB, free: 4.652 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006464/0.09566, allocations: 5.285 MB / 355 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.1058, allocations: 9.027 MB / 364 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005598/0.1064, allocations: 15.88 kB / 364 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008976/0.1073, allocations: 342.2 kB / 364.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002049/0.1094, allocations: 0.7184 MB / 365.1 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.1108, allocations: 0.5097 MB / 365.6 MB, free: 4.688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002038/0.1128, allocations: 1.701 MB / 367.3 MB, free: 2.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002461/0.1131, allocations: 163.1 kB / 367.4 MB, free: 2.805 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003019/0.1134, allocations: 298.5 kB / 367.7 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003023/0.1137, allocations: 322 kB / 368 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.906e-05/0.1137, allocations: 28 kB / 368.1 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001057/0.1148, allocations: 0.6593 MB / 368.7 MB, free: 1.508 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.372e-05/0.1149, allocations: 99.39 kB / 368.8 MB, free: 1.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00029/0.1152, allocations: 405.5 kB / 369.2 MB, free: 1.012 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1355/0.2507, allocations: 1.185 MB / 370.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.2507, allocations: 1.031 kB / 370.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2507, allocations: 0 / 370.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.443e-05/0.2508, allocations: 0 / 370.4 MB, free: 14.14 MB / 302.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.002036/0.2528, allocations: 1.274 MB / 371.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.2528, allocations: 11.16 kB / 371.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.109e-05/0.2529, allocations: 63.33 kB / 371.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.2531, allocations: 112.4 kB / 371.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.2542, allocations: 0.8557 MB / 372.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.2542, allocations: 20.41 kB / 372.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/0.2542, allocations: 24.62 kB / 372.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004899/0.2547, allocations: 307.6 kB / 373.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.2548, allocations: 2.719 kB / 373.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.891e-05/0.2548, allocations: 11.19 kB / 373.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.2548, allocations: 7.75 kB / 373.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003887/0.2552, allocations: 239.9 kB / 373.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.2568, allocations: 1.181 MB / 374.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.2571, allocations: 202.9 kB / 374.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002885/0.2574, allocations: 232.4 kB / 374.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006828/0.2642, allocations: 8.57 MB / 383.5 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.2643, allocations: 37.02 kB / 383.5 MB, free: 5.047 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.084e-06/0.2643, allocations: 0 / 383.5 MB, free: 5.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001553/0.2658, allocations: 0.6573 MB / 384.2 MB, free: 4.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.2659, allocations: 80.48 kB / 384.3 MB, free: 4.742 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009882/0.2669, allocations: 0.7943 MB / 385.1 MB, free: 4.598 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.2669, allocations: 31.95 kB / 385.1 MB, free: 4.566 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002772/0.2672, allocations: 441.8 kB / 385.5 MB, free: 4.438 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.719e-05/0.2673, allocations: 77.8 kB / 385.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.957e-05/0.2673, allocations: 57.06 kB / 385.7 MB, free: 4.355 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.518e-05/0.2674, allocations: 317.1 kB / 386 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.2676, allocations: 72.3 kB / 386 MB, free: 4.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.2677, allocations: 148.5 kB / 386.2 MB, free: 3.902 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.268, allocations: 231.9 kB / 386.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.268, allocations: 1.344 kB / 386.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005743/0.2686, allocations: 405.4 kB / 386.8 MB, free: 3.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.2687, allocations: 9.703 kB / 386.8 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.85e-05/0.2687, allocations: 18.45 kB / 386.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003544/0.2691, allocations: 142.8 kB / 387 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.2692, allocations: 32.36 kB / 387 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005317/0.2698, allocations: 0.7168 MB / 387.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003058/0.2701, allocations: 25.67 kB / 387.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.954e-05/0.2701, allocations: 17.12 kB / 387.8 MB, free: 2.914 MB / 302.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.0002257/0.2704, allocations: 194 kB / 387.9 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.2705, allocations: 102.8 kB / 388 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007712/0.2713, allocations: 408.2 kB / 388.4 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.2713, allocations: 6.75 kB / 388.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.2713, allocations: 0 / 388.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.2713, allocations: 4.75 kB / 388.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006248/0.2719, allocations: 0.4998 MB / 389 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.216e-05/0.272, allocations: 20.19 kB / 389 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.2721, allocations: 17.38 kB / 389 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000273/0.2724, allocations: 135.2 kB / 389.1 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.2724, allocations: 4.906 kB / 389.1 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004474/0.2728, allocations: 0.71 MB / 389.8 MB, free: 1.559 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2729, allocations: 0 / 389.8 MB, free: 1.559 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004856/0.2733, allocations: 464.8 kB / 390.3 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.2735, allocations: 168.9 kB / 390.5 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.54e-05/0.2736, allocations: 14.05 kB / 390.5 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.2738, allocations: 9.094 kB / 390.5 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.12e-05/0.2739, allocations: 14.47 kB / 390.5 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.2739, allocations: 7.656 kB / 390.5 MB, free: 1.117 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005047/0.2744, allocations: 0.5414 MB / 391 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2744, allocations: 0 / 391 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005478/0.275, allocations: 194.2 kB / 391.2 MB, free: 0.8516 MB / 302.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.001004/0.276, allocations: 1.184 MB / 392.4 MB, free: 24 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006024/0.2766, allocations: 286.9 kB / 392.7 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2766, allocations: 0 / 392.7 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.2769, allocations: 184.7 kB / 392.9 MB, free: 15.79 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007325/0.2776, allocations: 170.5 kB / 393 MB, free: 15.72 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008601/0.2863, allocations: 5.842 MB / 398.9 MB, free: 12.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004356/0.2867, allocations: 0.9391 MB / 399.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003898/0.2871, allocations: 112 kB / 399.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003105/0.2874, allocations: 312 kB / 400.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2874, allocations: 0 / 400.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5143/0.8018, allocations: 17.98 MB / 418.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003327/0.8022, allocations: 237.4 kB / 418.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.435/4.237, allocations: 2.297 kB / 418.5 MB, free: 11.77 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches