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.001537/0.001537, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.001848/0.001848, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.748/1.748, 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.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",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.002031/0.002031, allocations: 55.92 kB / 347.3 MB, free: 9.969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3706/0.3726, allocations: 49.15 MB / 396.4 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00796/0.3806, allocations: 5.745 MB / 402.2 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004224/0.3848, allocations: 1.451 MB / 403.6 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.3861, allocations: 19.69 kB / 403.6 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006021/0.3867, allocations: 156.7 kB / 403.8 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001302/0.388, allocations: 283.9 kB / 404.1 MB, free: 3.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001615/0.3896, allocations: 358.1 kB / 404.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00305/0.3927, allocations: 1.244 MB / 405.6 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008175/0.3935, allocations: 298.6 kB / 405.9 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001504/0.395, allocations: 474.8 kB / 406.4 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.3962, allocations: 0.5231 MB / 406.9 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002697/0.3964, allocations: 123.3 kB / 407 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004779/0.3969, allocations: 159.7 kB / 407.2 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002584/0.3972, allocations: 254.4 kB / 407.4 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005927/0.3978, allocations: 0.5378 MB / 408 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002096/0.3998, allocations: 1.413 MB / 409.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.3999, allocations: 2.219 kB / 409.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3999, allocations: 0 / 409.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.314e-05/0.3999, allocations: 0 / 409.4 MB, free: 0.8477 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.002983/0.4029, allocations: 1.249 MB / 410.7 MB, free: 28 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.4029, allocations: 12.2 kB / 410.7 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002011/0.4031, allocations: 134.6 kB / 410.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002427/0.4034, allocations: 108.6 kB / 410.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009387/0.4043, allocations: 457.3 kB / 411.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.015e-05/0.4044, allocations: 62.16 kB / 411.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00018/0.4046, allocations: 85.11 kB / 411.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001858/0.4064, allocations: 0.8844 MB / 412.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.4065, allocations: 1.406 kB / 412.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.754e-05/0.4065, allocations: 35.34 kB / 412.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.728e-05/0.4066, allocations: 19.09 kB / 412.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/0.4083, allocations: 0.7801 MB / 413.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00593/0.4142, allocations: 2.959 MB / 416.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.4154, allocations: 0.6078 MB / 416.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008031/0.4162, allocations: 374.1 kB / 417.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.348e-05/0.4163, allocations: 12.39 kB / 417.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.077e-05/0.4164, allocations: 38.75 kB / 417.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.525e-06/0.4164, allocations: 0 / 417.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.005622/0.422, allocations: 2.133 MB / 419.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.4221, allocations: 59.97 kB / 419.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008286/0.4229, allocations: 0.5058 MB / 419.9 MB, free: 10 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.959e-05/0.423, allocations: 41.83 kB / 419.9 MB, free: 9.957 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003628/0.4233, allocations: 400.5 kB / 420.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002737/0.4236, allocations: 266.6 kB / 420.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002572/0.4239, allocations: 133 kB / 420.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000231/0.4241, allocations: 373.3 kB / 421.1 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006807/0.4248, allocations: 312.7 kB / 421.4 MB, free: 8.766 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008022/0.4256, allocations: 424.4 kB / 421.8 MB, free: 8.488 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.427, allocations: 0.7429 MB / 422.5 MB, free: 8.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.4271, allocations: 1.406 kB / 422.5 MB, free: 8.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002438/0.4295, allocations: 1.041 MB / 423.6 MB, free: 7.477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.313e-05/0.4295, allocations: 6.969 kB / 423.6 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.4296, allocations: 2.688 kB / 423.6 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006657/0.4302, allocations: 183 kB / 423.8 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008858/0.4311, allocations: 188.4 kB / 424 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004659/0.4358, allocations: 2.758 MB / 426.7 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000988/0.4368, allocations: 31.98 kB / 426.7 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.892e-05/0.4368, allocations: 27.98 kB / 426.8 MB, free: 4.391 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.0006259/0.4375, allocations: 221.7 kB / 427 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/0.4376, allocations: 75.53 kB / 427.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002058/0.4378, allocations: 86.17 kB / 427.1 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.4379, allocations: 7.938 kB / 427.2 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.307e-05/0.4379, allocations: 4 kB / 427.2 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.4379, allocations: 7.922 kB / 427.2 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.4393, allocations: 0.8095 MB / 428 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.4393, allocations: 4 kB / 428 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007675/0.4401, allocations: 147.8 kB / 428.1 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006309/0.4407, allocations: 184.6 kB / 428.3 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.94e-05/0.4408, allocations: 23.98 kB / 428.3 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004208/0.445, allocations: 2.747 MB / 431.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.445, allocations: 0 / 431.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002907/0.4479, allocations: 1.385 MB / 432.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002557/0.4481, allocations: 67.52 kB / 432.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.4482, allocations: 12 kB / 432.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005803/0.4488, allocations: 55.95 kB / 432.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.449, allocations: 60.73 kB / 432.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-05/0.449, allocations: 19.98 kB / 432.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005112/0.4495, allocations: 358.8 kB / 433 MB, free: 13.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4495, allocations: 0 / 433 MB, free: 13.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009206/0.4504, allocations: 228.1 kB / 433.2 MB, free: 13.73 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.003446/0.4539, allocations: 1.946 MB / 435.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002468/0.4564, allocations: 0.9666 MB / 436.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.4564, allocations: 0 / 436.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001588/0.458, allocations: 0.6158 MB / 436.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009333/0.4589, allocations: 138.4 kB / 436.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/0.4717, allocations: 6.883 MB / 443.8 MB, free: 2.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008239/0.4726, allocations: 0.9576 MB / 444.7 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005193/0.4731, allocations: 89.03 kB / 444.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004689/0.4736, allocations: 287.3 kB / 445.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of SimCode: time 1.874e-06/0.4736, allocations: 0 / 445.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07024/0.5438, allocations: 18.24 MB / 463.3 MB, free: 15.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.62/14.17, allocations: 8.062 kB / 463.4 MB, free: 15.28 MB / 382.1 MB " [Timeout remaining time 646] (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: 17.02707156003453] 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'] 14.2916977009736 14.324653054 13.91873152 Calling exit ...