Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 214.7 kB / 24.47 MB, free: 3.777 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.341/1.341, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 55.92 kB / 347.2 MB, free: 9.863 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.25, allocations: 49.15 MB / 396.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004035/0.2541, allocations: 2.567 MB / 398.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.2552, allocations: 0.6618 MB / 399.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.2554, allocations: 4.875 kB / 399.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001675/0.2556, allocations: 51.41 kB / 399.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.2558, allocations: 100 kB / 399.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002764/0.256, allocations: 80.64 kB / 399.8 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004016/0.2564, allocations: 381 kB / 400.2 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001975/0.2566, allocations: 88.69 kB / 400.3 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.2568, allocations: 145.1 kB / 400.4 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.257, allocations: 146.6 kB / 400.6 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.466e-05/0.2571, allocations: 38.25 kB / 400.6 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.838e-05/0.2571, allocations: 38.12 kB / 400.6 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.138e-05/0.2572, allocations: 77.12 kB / 400.7 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.2573, allocations: 134.9 kB / 400.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004091/0.2577, allocations: 381.8 kB / 401.2 MB, free: 5.891 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2577, allocations: 0 / 401.2 MB, free: 5.891 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2577, allocations: 0 / 401.2 MB, free: 5.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.2577, allocations: 1.469 kB / 401.2 MB, free: 5.891 MB / 318.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.001151/0.2589, allocations: 0.5883 MB / 401.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.2589, allocations: 10.28 kB / 401.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.333e-05/0.259, allocations: 61.56 kB / 401.9 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.908e-05/0.2591, allocations: 33.31 kB / 401.9 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.2594, allocations: 215.8 kB / 402.1 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.2594, allocations: 19.09 kB / 402.1 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.998e-05/0.2595, allocations: 20.91 kB / 402.2 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000625/0.2601, allocations: 357.2 kB / 402.5 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.2601, allocations: 0 / 402.5 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.599e-05/0.2601, allocations: 10.59 kB / 402.5 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.627e-06/0.2601, allocations: 7.344 kB / 402.5 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007193/0.2609, allocations: 251.6 kB / 402.8 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.2623, allocations: 0.992 MB / 403.8 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007446/0.2631, allocations: 203.9 kB / 404 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002924/0.2634, allocations: 84.88 kB / 404 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.2634, allocations: 2.375 kB / 404 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004429/0.2638, allocations: 218.5 kB / 404.3 MB, free: 3.871 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.623e-06/0.2638, allocations: 0 / 404.3 MB, free: 3.871 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.00199/0.2658, allocations: 445.7 kB / 404.7 MB, free: 3.738 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.2659, allocations: 114.3 kB / 404.8 MB, free: 3.605 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.2661, allocations: 292.8 kB / 405.1 MB, free: 3.438 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.2662, allocations: 28.61 kB / 405.1 MB, free: 3.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.595e-05/0.2663, allocations: 197.9 kB / 405.3 MB, free: 3.238 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.006e-05/0.2663, allocations: 40.83 kB / 405.4 MB, free: 3.207 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.079e-05/0.2664, allocations: 53.22 kB / 405.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.403e-05/0.2664, allocations: 336.3 kB / 405.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003249/0.2667, allocations: 120.1 kB / 405.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.2671, allocations: 285.5 kB / 406.1 MB, free: 2.535 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006166/0.2677, allocations: 305.5 kB / 406.4 MB, free: 2.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2677, allocations: 4 kB / 406.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001117/0.2688, allocations: 450.8 kB / 406.9 MB, free: 2.105 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.2689, allocations: 34.12 kB / 406.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.2689, allocations: 6.688 kB / 406.9 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003381/0.2692, allocations: 80.08 kB / 407 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002046/0.2694, allocations: 46.45 kB / 407 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001966/0.2714, allocations: 1.605 MB / 408.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003666/0.2718, allocations: 53.64 kB / 408.7 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.2718, allocations: 13.03 kB / 408.7 MB, free: 0.6094 MB / 318.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.0001298/0.2719, allocations: 149.8 kB / 408.9 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.631e-05/0.2719, allocations: 24.8 kB / 408.9 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.569e-05/0.272, allocations: 27.17 kB / 408.9 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.272, allocations: 1.562 kB / 408.9 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.272, allocations: 1.406 kB / 408.9 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.272, allocations: 1.172 kB / 408.9 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002143/0.2722, allocations: 242.3 kB / 409.1 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2722, allocations: 0 / 409.1 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.2723, allocations: 22.14 kB / 409.2 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002423/0.2726, allocations: 64.3 kB / 409.2 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.2726, allocations: 4.891 kB / 409.2 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002265/0.2749, allocations: 1.594 MB / 410.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2749, allocations: 2.188 kB / 410.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.2759, allocations: 309.7 kB / 411.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.2761, allocations: 34.94 kB / 411.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.235e-05/0.2761, allocations: 6.281 kB / 411.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002516/0.2764, allocations: 34.11 kB / 411.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.2765, allocations: 24.97 kB / 411.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.2765, allocations: 7.469 kB / 411.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002503/0.2768, allocations: 201.1 kB / 411.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2768, allocations: 0 / 411.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004252/0.2772, allocations: 80.11 kB / 411.5 MB, free: 14.5 MB / 334.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.00146/0.2786, allocations: 0.8492 MB / 412.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.2797, allocations: 433.2 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2798, allocations: 4.062 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004603/0.2802, allocations: 222.2 kB / 413 MB, free: 13.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003539/0.2806, allocations: 43.47 kB / 413 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005544/0.2861, allocations: 3.119 MB / 416.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001502/0.2863, allocations: 145.4 kB / 416.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001339/0.2864, allocations: 27.14 kB / 416.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.2865, allocations: 78.75 kB / 416.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2865, allocations: 0 / 416.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03894/0.3255, allocations: 7.439 MB / 423.8 MB, free: 6.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.59, allocations: 4 kB / 423.9 MB, free: 6.516 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 14.779685874003917]