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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001/0.001, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 227.4 MB / 246.3 MB, free: 9.059 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 64.52 kB / 306.3 MB, free: 0.7344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1063, allocations: 50.54 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006281/0.1126, allocations: 5.308 MB / 362.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1703/0.2829, allocations: 9.269 MB / 371.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008852/0.2838, allocations: 20.22 kB / 371.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001488/0.2854, allocations: 338.7 kB / 371.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002766/0.2882, allocations: 0.6968 MB / 372.5 MB, free: 9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0018/0.29, allocations: 486.6 kB / 373 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002989/0.293, allocations: 1.666 MB / 374.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000324/0.2934, allocations: 151.8 kB / 374.8 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006142/0.294, allocations: 303.2 kB / 375.1 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005626/0.2946, allocations: 313 kB / 375.4 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.859e-05/0.2947, allocations: 20.62 kB / 375.4 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001946/0.2967, allocations: 0.6537 MB / 376.1 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.2968, allocations: 94.53 kB / 376.2 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004602/0.2973, allocations: 394.9 kB / 376.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001704/0.299, allocations: 1.183 MB / 377.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.299, allocations: 0 / 377.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.299, allocations: 5.375 kB / 377.7 MB, free: 8.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.981e-05/0.299, allocations: 0 / 377.7 MB, free: 8.137 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.002569/0.3016, allocations: 1.277 MB / 379 MB, free: 7.309 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3017, allocations: 9.781 kB / 379 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.122e-05/0.3018, allocations: 62.17 kB / 379.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003567/0.3021, allocations: 131.4 kB / 379.2 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/0.3035, allocations: 0.8466 MB / 380.1 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.3035, allocations: 20.88 kB / 380.1 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.436e-05/0.3036, allocations: 27.73 kB / 380.1 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005649/0.3041, allocations: 310.5 kB / 380.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.3042, allocations: 1.469 kB / 380.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.438e-05/0.3042, allocations: 10.81 kB / 380.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.3042, allocations: 7.938 kB / 380.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004605/0.3047, allocations: 235.8 kB / 380.7 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.3065, allocations: 1.193 MB / 381.9 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003437/0.3069, allocations: 195.5 kB / 382.1 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003142/0.3072, allocations: 221.3 kB / 382.3 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007912/0.3151, allocations: 8.884 MB / 391.2 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.3151, allocations: 32.72 kB / 391.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.083e-06/0.3152, allocations: 0 / 391.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001686/0.3169, allocations: 0.6566 MB / 391.8 MB, free: 13.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.3169, allocations: 80.08 kB / 391.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/0.318, allocations: 0.8035 MB / 392.7 MB, free: 12.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.345e-05/0.318, allocations: 26.83 kB / 392.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000346/0.3184, allocations: 444 kB / 393.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.798e-05/0.3184, allocations: 77.34 kB / 393.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.3186, allocations: 58.94 kB / 393.3 MB, free: 12.35 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3187, allocations: 315.7 kB / 393.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.3188, allocations: 66.45 kB / 393.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.3191, allocations: 154.9 kB / 393.8 MB, free: 11.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.3194, allocations: 239.5 kB / 394.1 MB, free: 11.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.3195, allocations: 5.406 kB / 394.1 MB, free: 11.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008001/0.3203, allocations: 404.9 kB / 394.5 MB, free: 11.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.3203, allocations: 5.406 kB / 394.5 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.961e-05/0.3204, allocations: 21.59 kB / 394.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004017/0.3208, allocations: 136.8 kB / 394.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.3209, allocations: 37.66 kB / 394.7 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007424/0.3217, allocations: 0.7056 MB / 395.4 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000377/0.3221, allocations: 25.16 kB / 395.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.947e-05/0.3222, allocations: 16.16 kB / 395.4 MB, free: 10.88 MB / 318.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.0002918/0.3224, allocations: 205.7 kB / 395.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.3226, allocations: 105.7 kB / 395.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009293/0.3236, allocations: 412.5 kB / 396.1 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.874e-06/0.3236, allocations: 11.16 kB / 396.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3236, allocations: 0 / 396.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3236, allocations: 0 / 396.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007359/0.3243, allocations: 0.5019 MB / 396.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.433e-05/0.3244, allocations: 11.34 kB / 396.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.3245, allocations: 21.56 kB / 396.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003311/0.3248, allocations: 141 kB / 396.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.3249, allocations: 8.531 kB / 396.8 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006292/0.3255, allocations: 0.7082 MB / 397.5 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3255, allocations: 0 / 397.5 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000647/0.3262, allocations: 470 kB / 398 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002657/0.3265, allocations: 171.9 kB / 398.2 MB, free: 8.984 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.3266, allocations: 9.188 kB / 398.2 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.3268, allocations: 6.609 kB / 398.2 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.403e-05/0.3269, allocations: 16.08 kB / 398.2 MB, free: 8.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.443e-05/0.3269, allocations: 9.031 kB / 398.2 MB, free: 8.965 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000771/0.3277, allocations: 0.5411 MB / 398.7 MB, free: 8.645 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3277, allocations: 0 / 398.7 MB, free: 8.645 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008805/0.3286, allocations: 198.2 kB / 398.9 MB, free: 8.609 MB / 318.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.001575/0.3302, allocations: 1.176 MB / 400.1 MB, free: 7.742 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005914/0.3308, allocations: 283.4 kB / 400.4 MB, free: 7.586 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3308, allocations: 0 / 400.4 MB, free: 7.586 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002896/0.3311, allocations: 178.5 kB / 400.6 MB, free: 7.473 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008277/0.3319, allocations: 154 kB / 400.7 MB, free: 7.395 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008863/0.3408, allocations: 5.854 MB / 406.6 MB, free: 3.492 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004748/0.3413, allocations: 0.9388 MB / 407.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003765/0.3417, allocations: 106.7 kB / 407.6 MB, free: 2.535 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003035/0.342, allocations: 307.3 kB / 407.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of SimCode: time 6.42e-07/0.342, allocations: 0 / 407.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.066/0.408, allocations: 17.65 MB / 425.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/0.4083, allocations: 229.2 kB / 425.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.522, allocations: 0 / 425.8 MB, free: 0.5078 MB / 334.1 MB (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 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches