Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.006203/0.006203, allocations: 117.2 kB / 21.97 MB, free: 5.246 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.001445/0.001445, allocations: 208.3 kB / 25.28 MB, free: 3.254 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.428/1.428, allocations: 207.6 MB / 236 MB, free: 10.89 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.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",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.001698/0.001698, allocations: 43.94 kB / 348 MB, free: 10.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2981, allocations: 49.16 MB / 397.2 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006633/0.3047, allocations: 5.737 MB / 402.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004403/0.3091, allocations: 1.459 MB / 404.4 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00132/0.3104, allocations: 18.31 kB / 404.4 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005769/0.311, allocations: 162.8 kB / 404.6 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009072/0.3119, allocations: 275.7 kB / 404.8 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.3129, allocations: 355.7 kB / 405.2 MB, free: 3.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001864/0.3148, allocations: 1.241 MB / 406.4 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005834/0.3154, allocations: 297.1 kB / 406.7 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009755/0.3163, allocations: 471.9 kB / 407.2 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006357/0.317, allocations: 0.5312 MB / 407.7 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001638/0.3171, allocations: 127.5 kB / 407.8 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003069/0.3174, allocations: 155.8 kB / 408 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001768/0.3176, allocations: 248 kB / 408.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000492/0.3181, allocations: 0.5397 MB / 408.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001822/0.3199, allocations: 1.417 MB / 410.2 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.3199, allocations: 2.109 kB / 410.2 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3199, allocations: 0 / 410.2 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.674e-05/0.32, allocations: 0 / 410.2 MB, free: 0.9062 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002914/0.3229, allocations: 1.249 MB / 411.4 MB, free: 96 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.627e-05/0.3229, allocations: 17.58 kB / 411.5 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.545e-05/0.323, allocations: 20.47 kB / 411.5 MB, free: 84 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001708/0.3232, allocations: 126.4 kB / 411.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002513/0.3234, allocations: 113.6 kB / 411.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.3244, allocations: 456 kB / 412.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.647e-05/0.3245, allocations: 63.06 kB / 412.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/0.3247, allocations: 88.77 kB / 412.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.3263, allocations: 0.8805 MB / 413.2 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.364e-05/0.3264, allocations: 4 kB / 413.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.142e-05/0.3265, allocations: 36.91 kB / 413.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/0.3265, allocations: 19.09 kB / 413.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.3282, allocations: 0.784 MB / 414 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006799/0.335, allocations: 2.954 MB / 417 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.3365, allocations: 0.6039 MB / 417.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007859/0.3373, allocations: 377.9 kB / 418 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.407e-05/0.3374, allocations: 16.7 kB / 418 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.613e-05/0.3374, allocations: 39 kB / 418 MB, free: 11.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.895e-06/0.3374, allocations: 0 / 418 MB, free: 11.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.006088/0.3435, allocations: 2.129 MB / 420.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.3436, allocations: 58 kB / 420.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000756/0.3443, allocations: 0.515 MB / 420.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.665e-05/0.3444, allocations: 40.45 kB / 420.7 MB, free: 10 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003351/0.3448, allocations: 401.8 kB / 421.1 MB, free: 9.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002536/0.345, allocations: 266.6 kB / 421.4 MB, free: 9.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000287/0.3453, allocations: 132.4 kB / 421.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002607/0.3456, allocations: 373.4 kB / 421.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000677/0.3462, allocations: 308.3 kB / 422.2 MB, free: 8.816 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007771/0.347, allocations: 425.7 kB / 422.6 MB, free: 8.539 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001478/0.3485, allocations: 0.7462 MB / 423.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.3485, allocations: 0 / 423.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00246/0.351, allocations: 1.039 MB / 424.4 MB, free: 7.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.351, allocations: 6.031 kB / 424.4 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.351, allocations: 6.438 kB / 424.4 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006672/0.3517, allocations: 179.7 kB / 424.6 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000839/0.3525, allocations: 188.1 kB / 424.8 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004298/0.3568, allocations: 2.75 MB / 427.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008607/0.3577, allocations: 36.05 kB / 427.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-05/0.3577, allocations: 27.98 kB / 427.6 MB, free: 4.387 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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): 1 system {(5,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005048/0.3582, allocations: 217.7 kB / 427.8 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001829/0.3584, allocations: 75.53 kB / 427.9 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001951/0.3586, allocations: 90.11 kB / 428 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.3586, allocations: 12 kB / 428 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.139e-05/0.3587, allocations: 0 / 428 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.3587, allocations: 3.984 kB / 428 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001344/0.36, allocations: 0.8095 MB / 428.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.36, allocations: 4.125 kB / 428.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007812/0.3608, allocations: 151.8 kB / 428.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005899/0.3614, allocations: 184.6 kB / 429.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.367e-05/0.3615, allocations: 27.92 kB / 429.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004047/0.3655, allocations: 2.751 MB / 431.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.3655, allocations: 0 / 431.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00323/0.3688, allocations: 1.385 MB / 433.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003902/0.3692, allocations: 67.52 kB / 433.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.3693, allocations: 16 kB / 433.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006517/0.3699, allocations: 55.89 kB / 433.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.3701, allocations: 56.55 kB / 433.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.474e-05/0.3702, allocations: 23.98 kB / 433.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005895/0.3708, allocations: 354.9 kB / 433.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3708, allocations: 0 / 433.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001098/0.3719, allocations: 228.1 kB / 434.1 MB, free: 13.71 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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 (56): * Single equations (assignments): 55 * 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): 1 system {(5,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003321/0.3752, allocations: 1.949 MB / 436 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002695/0.3779, allocations: 0.9595 MB / 437 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.3779, allocations: 0 / 437 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001511/0.3794, allocations: 0.6151 MB / 437.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009627/0.3804, allocations: 130.6 kB / 437.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0127/0.3931, allocations: 6.907 MB / 444.6 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000675/0.3937, allocations: 0.9499 MB / 445.6 MB, free: 1.953 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004417/0.3942, allocations: 85.05 kB / 445.6 MB, free: 1.871 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004293/0.3946, allocations: 287.3 kB / 445.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of SimCode: time 1.362e-06/0.3946, allocations: 0 / 445.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05767/0.4523, allocations: 18.26 MB / 464.2 MB, free: 15.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.13, allocations: 8.016 kB / 464.2 MB, free: 15.25 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.00019984 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.53009850694798] Failed to read output from testmodel.py, exit status != 0: ['time', 'C1.v', 'C2.v', 'C3.v', 'C4.v', 'C5.v', 'Transistor1.Tr.C.v', 'Transistor1.ct.v', 'Transistor2.Tr.C.v', 'Transistor2.ct.v'] 13.297082361998037 13.312749791 12.989579394 Calling exit ...