Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.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.001829/0.001829, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.002328/0.002328, allocations: 214.3 kB / 23.75 MB, free: 4.672 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.444/1.444, allocations: 230.5 MB / 257.4 MB, free: 7.973 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.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 67.89 kB / 377.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2571, allocations: 53.41 MB / 431.2 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.00431/0.2614, allocations: 2.84 MB / 434 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.2629, allocations: 0.6778 MB / 434.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001813/0.2631, allocations: 7.938 kB / 434.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00019/0.2633, allocations: 43.56 kB / 434.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002085/0.2635, allocations: 91.19 kB / 434.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002987/0.2638, allocations: 95.83 kB / 435 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005128/0.2643, allocations: 374.5 kB / 435.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.2645, allocations: 83.36 kB / 435.4 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/0.2647, allocations: 155.5 kB / 435.6 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002331/0.2649, allocations: 159.3 kB / 435.7 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.803e-05/0.265, allocations: 36 kB / 435.7 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.621e-05/0.2651, allocations: 39.94 kB / 435.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.169e-05/0.2651, allocations: 75.75 kB / 435.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001769/0.2653, allocations: 163.2 kB / 436 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004729/0.2658, allocations: 378.9 kB / 436.4 MB, free: 1.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.341e-06/0.2658, allocations: 3.984 kB / 436.4 MB, free: 1.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.067e-05/0.2658, allocations: 4 kB / 436.4 MB, free: 1.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.2658, allocations: 0 / 436.4 MB, free: 1.43 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001297/0.2671, allocations: 0.5858 MB / 437 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.2671, allocations: 8.031 kB / 437 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.061e-05/0.2672, allocations: 62.72 kB / 437 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.965e-05/0.2673, allocations: 40.7 kB / 437.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003907/0.2677, allocations: 222.9 kB / 437.3 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.2677, allocations: 16.88 kB / 437.3 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.745e-05/0.2677, allocations: 24.38 kB / 437.3 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006465/0.2684, allocations: 306.7 kB / 437.6 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.2684, allocations: 3.984 kB / 437.6 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.2684, allocations: 8 kB / 437.7 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.2684, allocations: 8 kB / 437.7 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007784/0.2692, allocations: 249.5 kB / 437.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001761/0.271, allocations: 1.051 MB / 439 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007463/0.2717, allocations: 206.5 kB / 439.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002966/0.272, allocations: 84.89 kB / 439.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.2721, allocations: 11.92 kB / 439.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004415/0.2725, allocations: 161.9 kB / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/0.2725, allocations: 0 / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.002004/0.2745, allocations: 446.1 kB / 439.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.52e-05/0.2746, allocations: 110.8 kB / 440 MB, free: 13.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003545/0.2749, allocations: 281.9 kB / 440.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.275, allocations: 29.7 kB / 440.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.2751, allocations: 208 kB / 440.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.429e-05/0.2752, allocations: 39.69 kB / 440.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.2753, allocations: 53.89 kB / 440.6 MB, free: 13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.2755, allocations: 334.8 kB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.2758, allocations: 96.16 kB / 441 MB, free: 12.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004159/0.2762, allocations: 198.8 kB / 441.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007067/0.2769, allocations: 304.5 kB / 441.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.2769, allocations: 0 / 441.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001197/0.2781, allocations: 423.8 kB / 441.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.778e-05/0.2782, allocations: 40.05 kB / 441.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.2782, allocations: 7.938 kB / 441.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003672/0.2786, allocations: 76.83 kB / 442 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.2788, allocations: 47.91 kB / 442.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002465/0.2812, allocations: 1.608 MB / 443.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003517/0.2816, allocations: 55.88 kB / 443.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.2816, allocations: 8 kB / 443.7 MB, free: 9.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000183/0.2818, allocations: 153.6 kB / 443.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.094e-05/0.2818, allocations: 27.81 kB / 443.9 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.119e-05/0.2819, allocations: 25.7 kB / 443.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.2819, allocations: 4 kB / 443.9 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-06/0.2819, allocations: 4 kB / 443.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.2819, allocations: 3.984 kB / 443.9 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003101/0.2822, allocations: 272.4 kB / 444.2 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2822, allocations: 0 / 444.2 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.2823, allocations: 19.97 kB / 444.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002763/0.2826, allocations: 72.8 kB / 444.3 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.2826, allocations: 0 / 444.3 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002258/0.2849, allocations: 1.6 MB / 445.9 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2849, allocations: 0 / 445.9 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000985/0.2859, allocations: 309.6 kB / 446.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.814e-05/0.286, allocations: 35.83 kB / 446.2 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.985e-05/0.286, allocations: 4 kB / 446.2 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.2862, allocations: 27.95 kB / 446.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.27e-05/0.2863, allocations: 23.97 kB / 446.3 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.2863, allocations: 7.938 kB / 446.3 MB, free: 6.824 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002243/0.2866, allocations: 205.1 kB / 446.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2866, allocations: 0 / 446.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003749/0.2869, allocations: 79.89 kB / 446.6 MB, free: 6.547 MB / 350.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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001325/0.2883, allocations: 0.8539 MB / 447.4 MB, free: 5.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001006/0.2893, allocations: 414.1 kB / 447.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2893, allocations: 0 / 447.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004484/0.2897, allocations: 226.6 kB / 448 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.29, allocations: 49.55 kB / 448.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005251/0.2953, allocations: 2.995 MB / 451.1 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/0.2957, allocations: 0.7558 MB / 451.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.2958, allocations: 22.3 kB / 451.9 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.296, allocations: 75.41 kB / 451.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of SimCode: time 9.42e-07/0.296, allocations: 0 / 451.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03961/0.3356, allocations: 7.056 MB / 459 MB, free: 9.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.75, allocations: 3.984 kB / 459 MB, free: 9.992 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.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: 15.159392390865833]