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.001493/0.001493, allocations: 113.6 kB / 21.19 MB, free: 0.7031 MB / 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.002782/0.002782, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.629/1.629, allocations: 207.6 MB / 235.3 MB, free: 10 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.001971/0.001971, allocations: 55.92 kB / 347.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2899, allocations: 49.16 MB / 396.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003689/0.2936, allocations: 2.771 MB / 399.1 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.2947, allocations: 0.6901 MB / 399.8 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.2948, allocations: 12.62 kB / 399.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.295, allocations: 43.09 kB / 399.9 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001729/0.2952, allocations: 91.48 kB / 400 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002575/0.2954, allocations: 87.97 kB / 400.1 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003851/0.2958, allocations: 382 kB / 400.4 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001975/0.296, allocations: 100.7 kB / 400.5 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001828/0.2962, allocations: 148.8 kB / 400.7 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002217/0.2964, allocations: 166.2 kB / 400.8 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.872e-05/0.2965, allocations: 34.5 kB / 400.9 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.739e-05/0.2965, allocations: 33.56 kB / 400.9 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.141e-05/0.2966, allocations: 70.58 kB / 401 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001404/0.2967, allocations: 165.7 kB / 401.1 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004304/0.2971, allocations: 378.5 kB / 401.5 MB, free: 5.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2971, allocations: 0 / 401.5 MB, free: 5.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2972, allocations: 0 / 401.5 MB, free: 5.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.2972, allocations: 0 / 401.5 MB, free: 5.691 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.001136/0.2983, allocations: 0.5896 MB / 402.1 MB, free: 5.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.2983, allocations: 9.969 kB / 402.1 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.662e-05/0.2984, allocations: 59.39 kB / 402.2 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.37e-05/0.2985, allocations: 38.95 kB / 402.2 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/0.2988, allocations: 214.2 kB / 402.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.2988, allocations: 19.44 kB / 402.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/0.2988, allocations: 23.75 kB / 402.4 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006275/0.2994, allocations: 307 kB / 402.7 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.2995, allocations: 0 / 402.7 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.72e-05/0.2995, allocations: 11.47 kB / 402.8 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.2995, allocations: 6.297 kB / 402.8 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007403/0.3002, allocations: 255.6 kB / 403 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.3017, allocations: 1.057 MB / 404.1 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007099/0.3024, allocations: 201.9 kB / 404.3 MB, free: 3.891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002952/0.3027, allocations: 85.2 kB / 404.3 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.3027, allocations: 2.719 kB / 404.4 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004277/0.3032, allocations: 177.1 kB / 404.5 MB, free: 3.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.453e-06/0.3032, allocations: 0 / 404.5 MB, free: 3.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.002051/0.3052, allocations: 445.9 kB / 405 MB, free: 3.621 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.3052, allocations: 110 kB / 405.1 MB, free: 3.492 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002996/0.3055, allocations: 281.2 kB / 405.3 MB, free: 3.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.3056, allocations: 31.2 kB / 405.4 MB, free: 3.301 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.3057, allocations: 198.7 kB / 405.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.134e-05/0.3057, allocations: 45.41 kB / 405.6 MB, free: 3.098 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.434e-05/0.3058, allocations: 52.62 kB / 405.7 MB, free: 3.062 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.245e-05/0.3059, allocations: 330.9 kB / 406 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003346/0.3062, allocations: 93.8 kB / 406.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003607/0.3066, allocations: 203 kB / 406.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006297/0.3072, allocations: 305.8 kB / 406.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3072, allocations: 1.094 kB / 406.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00115/0.3083, allocations: 422.9 kB / 407 MB, free: 2.156 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.3084, allocations: 34.58 kB / 407 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.3084, allocations: 6.5 kB / 407 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003481/0.3087, allocations: 76.81 kB / 407.1 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/0.309, allocations: 49.03 kB / 407.2 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00205/0.311, allocations: 1.611 MB / 408.8 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003446/0.3114, allocations: 60.39 kB / 408.8 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.3114, allocations: 21.55 kB / 408.8 MB, free: 0.6445 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.0001137/0.3115, allocations: 146.8 kB / 409 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.3115, allocations: 24.23 kB / 409 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.245e-05/0.3116, allocations: 27.48 kB / 409 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3116, allocations: 2.078 kB / 409 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.3116, allocations: 3.938 kB / 409 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3116, allocations: 0.7031 kB / 409 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.3118, allocations: 268.8 kB / 409.3 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3118, allocations: 0 / 409.3 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.3119, allocations: 27.64 kB / 409.3 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002466/0.3122, allocations: 62.64 kB / 409.4 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.3122, allocations: 1.375 kB / 409.4 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002207/0.3144, allocations: 1.61 MB / 411 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3144, allocations: 1.469 kB / 411 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009994/0.3154, allocations: 309.6 kB / 411.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.3155, allocations: 38.05 kB / 411.3 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.3155, allocations: 2.062 kB / 411.3 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.3158, allocations: 33.23 kB / 411.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.3159, allocations: 25.8 kB / 411.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/0.3159, allocations: 7.188 kB / 411.4 MB, free: 14.65 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002331/0.3161, allocations: 199.9 kB / 411.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3161, allocations: 0 / 411.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004016/0.3165, allocations: 80.22 kB / 411.7 MB, free: 14.52 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.001446/0.318, allocations: 0.846 MB / 412.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009984/0.319, allocations: 405.1 kB / 412.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.319, allocations: 0 / 412.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004815/0.3195, allocations: 220.6 kB / 413.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.3198, allocations: 41.72 kB / 413.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005955/0.3257, allocations: 3.008 MB / 416.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004724/0.3262, allocations: 0.7572 MB / 416.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.3263, allocations: 27.84 kB / 417 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.3265, allocations: 74.81 kB / 417 MB, free: 10.26 MB / 334.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3265, allocations: 0 / 417 MB, free: 10.26 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04153/0.368, allocations: 7.032 MB / 424.1 MB, free: 6.543 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.2, allocations: 5.344 kB / 424.1 MB, free: 6.539 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: 15.904716099146754]